Facebook Graph API not fetching details of Gated Posts (Targeted Posts) - facebook-graph-api

I am trying to fetch the information of all the posts published/scheduled on my own facebook page. For gated or posts which are targeted to specific country/language/age it shows the following error. It used to work before now, recently I created a new facebook app 2.6 version. Just wondering if that has caused the problem. Other posts are being fetched without any issues whereas facing problems with gated posts.
This is the error message:
Unsupported get request. Object with ID 'xxxxxxxxxxxxxxxxxxxxxx' 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,

Related

Facebook Graph Places Search API always fails with 33 code error

I am getting started on Facebook Graph API. I need to use Places Search Product, I have followed a tutorial to create a basic user app (generate user token), and am trying to run this simple request
https://graph.facebook.com/search?
type=place&
center=40.7304,-73.9921&
distance=1000&
q=cafe&
fields=name,checkins,website&
limit=3&
access_token=XXXX
I am always getting this error
{
"error": {
"message": "(#33) This object does not exist or does not support this action",
"type": "OAuthException",
"code": 33,
"fbtrace_id": "XXXXX"
}
}
You did not explicitly specify an API version in your call there, so this uses whatever the default API version for your app is.
Looks like for yours that might be v6.0 already (did you create the app id only recently?) - and with that, things have changed regarding the Places Search API.
There is a new feature called Page Public Metadata Access now, that you have to apply for, before you can use this search.
I tried your request with older apps that still can use lower API versions in Graph API Explorer - and this works fine for API versions v3.0 up to and including v5.0.
Using v6.0, I get the same error message you mentioned.
So, if your app is old enough to still be able to use older API versions, you could do that - at least for the time being. If not, then you will have to submit your app for review of this feature first.
The answer I found after investigations is that Facebook has deprecated places search from Facebook API, u would need to ask for it to use it!

Trying to get information user_friends, user_events, user_managed groups via Facebook Graph API but getting an error message

To start off, sorry, I'm pretty new at this!
I'm an assistant research coordinator at an university, and we've been using Facebook groups to conduct studies. I've been using a set of instructions created by my former colleagues (who have now left) on how to download my Facebook group data (such as comments and posts). It was working fine before, but today, when I was trying to download the information, it has not worked.
Instead, I get this:
{
"error":{
"message": "Unsupported get request. Object with ID '2016101665345495' 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": "ASWzpxRukCz"
}
}
I suspect it is related to Facebook's new policy on April 4th: "Beginning April 4, 2018, all apps, including those formerly approved, must undergo App Review in order to retain or gain access to the Groups API. For apps currently using the API, review is required once App Review resumes or access will be removed."
I'm a little confused because we're not using an app so I don't understand what kind of permissions could be missing.
All the information you need can be found here: https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes
Access to the Group API is not possible at all right now.
You should also take a look at this link: https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#4-4-2018
Beginning April 4, 2018, all apps, including those formerly approved, must undergo App Review in order to gain access to the Events API, Groups API, and Pages API. Apps accessing the Events API and Groups API will lose access and require review once App Review resumes. For apps using Pages API, review will be required once App Review resumes or access will be removed.
https://developers.facebook.com/docs/apps/review

Cannot retrieve public posts via Facebook Graph Explorer due to "Unsupported GET request"

I'm trying to retrieve a number of public posts from facebook via the Graph Explorer Interface, and I'm running into the "Unsupported get request" exception.
A lot of posts on StackOverflow say that this is because you need to acquire some user_access permission, but as far as I understand, that shouldn't be the case here.
The ID of one of the posts I'm trying to access is:
224393774239629_508106655868338
If it were restricted, I shouldn't be able to see post here without logging into facebook:
http://www.facebook.com/224393774239629/posts/508106655868338
So that should rule out the problem with restriced access.
So is this a bug in the facebook graph explorer?
Or am I missing something?
Ok, weird.
The link to facebook I put in does actually require you to login to facebook. But if you copy-paste the link into the addressbar instead, you apparently bypass that restriction, which led me to believe that the link didn't require login.
So I suppose I'm back to figring out the access restriction issue.

Facebook unreliably reading OpenGraph attributes when publishing to newsfeed through Graph API

We have a Facebook app that publishes URLs to a user's newsfeed via the Facebook iOS SDK. These URLs are for pages that have OpenGraph attributes defined and we've verified in the Facebook Linter that it's correctly defined.
However, periodically we are seeing that Facebook won't correctly parse the OpenGraph attributes and have less than a stellar post to Facebook:
We will most often get posts parsed correctly resulting in posts like these:
We'll periodically get posts like these:
However, you can see this later post works correctly in the FB Url Linter: https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fchewsy.com%2Fr%2Fa%2F1bhLT.
However, sometimes the URL Linter will report a 503 but I see nothign in our logs. And even more odd, when the URL Linter reports the 503, it will shows that it can read the OpenGraph attributes defined. See this screenshot:
Since this is inconsistent, my first guess was this was a Facebook issue so I opened a bug. However, since I'm not seeing this issue rampant in the newsfeed with other apps, I'm starting to wonder if we aren't following the right steps to publishing FB content.
For example, are we supposed to post to the URL Linter first, then publish via the Graph API? This seems like a ridiculous extra step, but I'm grasping at straws here...
It's probably due to fact that in a time Facebook Linter visited your site it wasn't accessible, just couple of refreshes on a Linter Tool with URL you've provided resulted in Bad Response Code error, returning 503 status code:
http://chewsy.com/r/a/1bhLT"">
You should dig in logs of your application/site to discover the real reason why this happen and fix it.
Just a quick note that this should no longer be happening for CloudFlare users. We pushed a fix for the 503 debugger issue moments ago that appears to have fixed the problem. Please contact us if you see any other issues with the Facebook Debugger.

Unable to publish to facebook feed

I operate a website, http://www.plingo.com.br/
I have created a like button for that webpage, as well as specified opengraph tags that point back to the same URL and included a video.
I have set the og:type tag to 'blog'.
When someone clicks Like, the video and URL get posted to the users feed as expected.
However, my issue revolves around being able to publish to users of my feed.
As you can see in my opengraph tags, I have associated my URL to a facebook application that I own.
I have followed the instructions at developers.facebook.com/docs/opengraph/ on how to publish to my feed directly, however when I run the PHP script, I receive this error:
"error": {
"message": "(#100) (the url) does not resolve to a valid user ID",
"type": "OAuthException"
}
However, the opengraph at the URL points both to my facebook account as well as my application.
I have no idea why I am unable to do this.
However, to try to diagnose the issue, I made a similar webpage at http://www.plingo.com.br/ogtest.php and set all the attributes of the opengraph tags the same, except for the og:url and the youtube video. Running the publish script using that URL however, works fine, and facebook even generated an administrative page for publishing to facebook.
I am wondering why this is not working with my root URL. Is there any way to get Facebook to give me an Administrative Page? Why can't I publish, even though I have associated the opengraph IDs properly?
I would GREATLY appreciate any input as I have tried countless different things, changes, etc to see where the issue lies.
Thank you