Posts tagged with facebook-graph-api

I am currently using the Instagram API to publish stories and I would like to know if it's possible to add clickable links directly within the stories via API.

Is there any official or unofficial way to achieve this programmatically through the Instagram API?

I appreciate any insights or examples that could point me in the right direction

Thank you very much !

Is it possible to retrieve Facebook Group members' physical mailing addresses from any of Facebook's API's (is it Graph API we would use?)

Can anyone verify? I know we can get the user's emails but it would seem the mailing addresses would not be available due to privacy concerns.

I have checked through the documentation and found this: https://developers.facebook.com/docs/graph-api/reference/mailing-address/ but digging a bit further it seems this is only for business' mailing addresses.

I recently started a project, and the owner asked me to implement login with Instagram and fetch photos from Instagram However, I cannot see anything related to Instagram Basic Display in Facebook App Dashboard.

In my old app projects in Facebook, I see there is a Add a Product section which includes different products that facebook offers. I also see App Mode in them where I cannot see that toggle switch in the problematic app.

Any suggestion is appreciated.

I published the app to see whether it will change, without some of my use cases, however, nothing changed.

I have to get basic data from Facebook Pages (as opposed to Profiles) e.g. https://www.facebook.com/njordgearshop

This getting of basic data is going to be part of a larger workflow that will run on one of our servers. There's not going to be an Android or iOS app in that sense.

We've create a Meta App, and have connected it to a verified Business portfolio.

We want to be able to access the public Pages of community organisations and politicians. We appear to need an access_token for that, thus the creation of Meta App so that we have the app_id and app_secret from which to generate an App Token.

However, when we issue that App Token in a search for say, roeburneraces in the Graph API Explorer with pages/search?q=roeburneraces&fields=id,name,location,link we get

{   "error": {     "message": "(#10) This endpoint requires the 'pages_read_engagement' permission or the 'Page Public Content Access' feature or the 'Page Public Metadata Access' feature. Refer to https://developers.facebook.com/docs/apps/review/login-permissions#manage-pages, https://developers.facebook.com/docs/apps/review/feature#reference-PAGES_ACCESS and https://developers.facebook.com/docs/apps/review/feature#page-public-metadata-access for details.",     "type": "OAuthException",     "code": 10,     "fbtrace_id": "ANvRkSrF3kqHRQaw1OnYKIq"   } } 

So how do you add pages_read_engagement to an "App Token"? You can't. So where to from here?

Somehow we have to be able to build a full-length access_token. A User Token is useless because we're interested in Pages not Users. And generating a Page Access token that targets the aforementioned Business portfolio proves equally useless and when logged in as the Business portfolio one only has a limited set of possible Page Access tokens to choose from.

If I'm reading the documentation correctly, the 'Page Public Content Access' and 'Page Public Metadata Access' features are only available after App Review. I'm bound to fail App Review because I can't demonstrate what I need a pass in App Review to demonstrate.

I really hope I'm missing something obvious.

So I create an App. I get an access_token, specifying "pages_read_engagement". For good measure, using my app-id and app-secret, I get a long term token. I then make a simple request

curl -i -X GET "https://graph.facebook.com/v20.0/100057751132253?access_token=REDACTED" 

and I get the response

{"error":{"message":"Unsupported get request. Object with ID '100057751132253' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https:\/\/developers.facebook.com\/docs\/graph-api","type":"GraphMethodException","code":100,"error_subcode":33,"fbtrace_id":"AGSkkLP2xPncRE9SS4nAMZT"}} 

Now I happen to know that 100057751132253 resolves to KevinMichelMLA, a state-level politician in the Australian state of Western Australia. As far as I can tell, his profile is public. And I have at least one of the required permissions. What else am I missing?