Posts tagged with facebook-graph-api

I am trying to get all types of post's visible on my feed of all the user's, is their any way to do it.

I tried differnt facebook graph api but they are only retruning me posts made by me.

I have read on multiple post that you can only get the post those are made by you.

I just want all the public post data of my facebook wall

I have this problem with my Meta/Facebook Webhook, It does not allow sending data to my CRM, when I test it the webhook returned me this error "The page admin who installs the app has ceased being an admin".

I don't understand if I have to delete and create a new app (something that I don't want to do) or maybe change this app admin somewhere.

PD: I have role admin, but I didn't create the app, the one how did it is no longer working with us.

PD2: The function that retrieve the data is located in Google Cloud Functions (I don't think this matters for the webhook error)

I'm developing a POC for a MuleSoft API (still running locally) that would fetch leads from a form. I have created a page and form and submitted a test lead via the Leads Ad Testing Tool. I can see the test lead in the Lead Centre.

I have also created the app with Product (Facebook Login for Business), I'm not sure if this is the same as "Facebook Login" I'm seeing in other post but there are no other option for a Facebook Login.

Below are the settings in the Basic > Settings and Client OAuth settings in the Facebook Login for Business > Settings menu.

[Basic > Settings] (https://i.sstatic.net/JBs5NK2C.png) Client OAuth settings

Below is the XML Code with Request Config:

<?xml version="1.0" encoding="UTF-8"?> <mule xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core" xmlns:oauth="http://www.mulesoft.org/schema/mule/oauth"     xmlns:http="http://www.mulesoft.org/schema/mule/http"     xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/oauth http://www.mulesoft.org/schema/mule/oauth/current/mule-oauth.xsd http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd">     <http:request-config name="HTTP_Request_configuration_client_credentials" doc:name="HTTP Request configuration" doc:id="b4a82eca-5bb9-4333-a8ea-7599b9307a51" >         <http:request-connection protocol="HTTPS" host="graph.facebook.com">             <http:authentication >                 <oauth:client-credentials-grant-type clientId="xxxx" clientSecret="xxxx" scopes="public_profile,email,pages_show_list,pages_read_engagement,pages_manage_metadata,leads_retrieval" tokenUrl="https://graph.facebook.com/v20.0/oauth/access_token" />             </http:authentication>         </http:request-connection>     </http:request-config>     <http:request-config name="HTTP_Request_configuration1" doc:name="HTTP Request configuration" doc:id="826fbda6-7cf0-49b6-a153-6467b9f190c3" >         <http:request-connection protocol="HTTPS" host="graph.facebook.com" >             <http:authentication >                 <oauth:authorization-code-grant-type externalCallbackUrl="http://localhost:8081/oauth2callback" localAuthorizationUrl="http://localhost:8081/oauth/authorize" authorizationUrl="https://graph.facebook.com/oauth/authorize" clientId="xxxx" clientSecret="xxxx" scopes="public_profile,email,pages_show_list,pages_read_engagement,pages_manage_metadata,leads_retrieval" tokenUrl="https://graph.facebook.com/v20.0/oauth/access_token" localCallbackConfig="asg-facebook-poc-api-httpListenerConfig" localCallbackConfigPath="/oauth2callback"/>             </http:authentication>         </http:request-connection>     </http:request-config>          <sub-flow name="fetch-leads-subflow" doc:id="b497fa90-1bcb-4321-a419-8311eb69fdbd" >         <http:request method="GET" doc:name="Request" doc:id="c84c143f-1dc1-47f3-868a-8dc7d7685d98" config-ref="HTTP_Request_configuration1" path="/v20.0/me"/>         <ee:transform doc:name="Transform Message" doc:id="6419b680-f8fd-44db-9305-00cea610913b" >             <ee:message >                 <ee:set-payload ><![CDATA[%dw 2.0 output application/json --- payload]]></ee:set-payload>             </ee:message>         </ee:transform>         <logger level="INFO" doc:name="Logger" doc:id="b8e4609e-12a2-4f2b-9600-f6fee13736a8" message="#[payload]"/>     </sub-flow> </mule> 

Error I receive, when I tried accessing the simple endpoint in Facebook /me: ERROR

ERROR 2024-09-25 20:48:13,112 [[MuleRuntime].uber.07: [asg-facebook-poc-api].get:\fetch-leads:asg-facebook-poc-api-config.CPU_LITE @5d699551] [processor: fetch-leads-subflow/processors/0; event: 69e982e0-7b3c-11ef-8d30-9009df41381d] org.mule.runtime.core.privileged.exception.DefaultExceptionListener:  ******************************************************************************** Message               : No access token found. Verify that you have authenticated before trying to execute an operation to the API. Element               : fetch-leads-subflow/processors/0 @ asg-facebook-poc-api:scheduler-fetch-leads.xml:85 (Request) Element DSL           : <http:request method="GET" doc:name="Request" doc:id="c84c143f-1dc1-47f3-868a-8dc7d7685d98" config-ref="HTTP_Request_configuration1" path="/v20.0/me"></http:request> Error type            : HTTP:SECURITY FlowStack             : at fetch-leads-subflow(fetch-leads-subflow/processors/0 @ asg-facebook-poc-api:scheduler-fetch-leads.xml:85 (Request)) at get:\fetch-leads:asg-facebook-poc-api-config(get:\fetch-leads:asg-facebook-poc-api-config/processors/1 @ asg-facebook-poc-api:asg-facebook-poc-api.xml:202 (fetch-leads-subflow)) at asg-facebook-poc-api-main(asg-facebook-poc-api-main/processors/0 @ asg-facebook-poc-api:asg-facebook-poc-api.xml:13)   (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** 


I also tried in Postman using http://localhost:8081/oauth/authorize, logged in and it worked.

I tried the other option client credentials grant type but it requires the access token which I don't have in the first place. Did not work on this.

I wanted to know if someone can give me a hand. Until today I was using touch.facebook.com in Mozilla Firefox version 48, but it is no longer available.

So far I have tried in these versions:

In these it tells me that “browser is not supported”. 49.0.1 48.0.2 48.0.1 48.0 47.0 43.0b9 37.0 1.5.0.3 33.0

And in these directly redirects to facebook.com 69.0b9 58.0

I also tried in the last available version of Safari for Windows, but it is so obsolete that the Login button does not work.

I couldn't get it to work in older versions of Chrome or Internet Explorer either.

Anyway, if anyone still knows how to login to touch.facebook.com either from mobile or from pc, I will be very grateful.

I'm creating a datacollector which would fetch data from public available ad in order to retrieve it on my app.

Basically, I would like to create a copycat of the official tool from Meta on my application.

I followed the Meta Ad Library API Guide, generated the user token access and when I make a call (e.g. https://graph.facebook.com/v20.0/ads_archive?ad_reached_countries=["FR"]&search_terms=savon&access_token=MY_TOKEN) I always have this return :

{ "error": {     "message": "Application does not have permission for this action",     "type": "OAuthException",     "code": 10,     "error_subcode": 2332004,     "is_transient": false,     "error_user_title": "App role required",     "error_user_msg": "You need to be assigned a role by the app owner to continue. Learn more at https://developers.facebook.com/docs/development/build-and-test/app-roles",     "fbtrace_id": "AEtWDzYFQypjN8PvUhnHwSQ" } 

I've seen many issues identical to mine (another one here) and I don't really understand as my user is an administrator, of a fully verified business.

I even found people saying it's because the app doesn't have the correct scopes (such as : ads_read, public_profile). I can't add the scope "ads_archive" on my app as I can't see it anywhere in App Review > Permissions and Features on my developer account, otherwise everything seems okay, here is the debug of my token :

{ "data": {     "app_id": "APP_ID",     "type": "USER",     "application": "APPLICATION_NAME",     "data_access_expires_at": 1734880167,     "expires_at": 1727107200,     "is_valid": true,     "scopes": [         "read_insights",         "pages_show_list",         "ads_management",         "ads_read",         "business_management",         "pages_read_engagement",         "pages_read_user_content",         "public_profile"     ],     "granular_scopes": [         {             "scope": "pages_show_list"         },         {             "scope": "ads_management"         },         {             "scope": "ads_read"         },         {             "scope": "business_management"         },         {             "scope": "pages_read_engagement"         },         {             "scope": "pages_read_user_content"         }     ],     "user_id": "USER_ID" } 

}

How to finally access the public data ?