Difference between user_posts & user_status - facebook-graph-api

I am confused if user_status permission is useful by any mean. I tried user_posts and that works fine but user_status do not work.
I do not know if I am missing something. I have tried it on Graph API Explorer.
What I want to know?
How to use just user_status permission? As per Facebook references user_status
Provides access to a person's statuses. These are posts on Facebook which don't include links, videos or photos.
What I know already?
By getting user_posts permission I successfully got status updates and other posts by fetching node data for /me/feed .
EDIT:
By saying user_status do not work, I mean that when I use /me/feed I should get status of mine(not other type of posts), but I do not get anything.

The permission user_status is no longer available in v2.4 of the Graph API:
https://developers.facebook.com/docs/apps/changelog#v2_4
GET /v2.4/{id}/links and GET /v2.4/{id}/statuses will no longer be available beginning in v2.4. As an alterantive, we suggest using GET /v2.4/{id}/feed.
So, you should use /{id}/feed together with the user_posts permission as suggested. See
https://developers.facebook.com/docs/graph-api/reference/v2.4/user/feed/#read
for the docs. You can use the filter parameter if you just want the statuses for example:
/{id}/feed?filter=app_2915120374

Related

Required Graph API Permissions to get my own instagram posts

I am completely lost as to what permissions I should apply for in App review for getting my own Instagram posts through Facebook's Graph API.
I did the basic steps for using the API: I made my Instagram account a business one, and linked it to my Facebook page, it seems that to use Instagram graph API I must apply for app review, which I want to do, except I don't know which permissions to apply for.
My only purpose is to retrieve my own account's photos/posts, there are so many permissions available to apply for, do I need all of these?
instagram_basic
instagram_content_publish
instagram_manage_comments
instagram_manage_insights
Or just some of them? Are there other permissions I need for my purpose?
I would appreciate any help, I've been losing my mind over this for over 2 weeks now, and I can't find any other answers that are recent or relevant.
So if you just want to get the media objects of an IG user, then instagram_basic and manage_pages permission will be sufficient.
However, if you also want to access the insights data of your media (e.g. impressions, reach, etc.) then you need the instagram_manage_insights permission as well.

Get instagram ID from facebook graph API without manage_pages permission

I'm creating an app that's using facebook login to get instagram follower insights. Currently I've followed and and successfully made the soloution written here: https://developers.facebook.com/docs/instagram-api/getting-started/
But here's the problem. Facebook won't approve the "manage_pages" permission for my app. Without manage_pages I have no idea how to get the instagram account id.
I've tried for a couple of weeks now, and facebook won't give any explanation other than "This permission is not required for your app's intended function, or it doesn't appear to enhance the user experience" and then referencing this https://developers.facebook.com/docs/facebook-login/permissions
I currently have a facebook support ticket regarding the issue but they haven't replied for almost 2 weeks. And I'm getting a little desperate.
Using below URL for version 3.0 and 3.2 to get the instagram accounts - It works with "manage_permissions" but without it the response is empty.
me/accounts?fields=name,id,access_token,instagram_business_account{id}
Facebook has finally replied to my support ticket and accepted my app review! The approach and guide I was using above was correct.
I have similar problem to get Instagram Id without extra manage_pages permission. I see no point to ask users for manage page permissions (just read it - its includes ads/create/delete etc permissions, crazy) just to get their Instagram accounts id connected to the page. I've found pages_read_engagement permission will provide this data! So, read only permission fixed my problem. Try it! Its better than manage_pages I guess.

How to get all liked objects of an user including posts, photos, urls with facebook graph api

This is cherrie. I am facing an issue, regarding facebook feed reading. I need to access all liked objects of an user including posts, photos, urls with graph api."me/likes" returns only pages. In earlier versions, we can achieve this using "user_activities" permissions, but now it is deprecated. Is there any way to achieve this, with present permissions. Help would be appreciated.
No, there is no way to access all likes, you can only get access to Page likes as you have found out.

Facebook API - permissions error

Anyone know what is the reason for this Facebook API error?
This is appearing sometimes while user is posting by /feed call.
"error":{"message":"Permissions error", "type":"FacebookApiException", "code":200, "error_subcode":1376025
Posting to a user's wall is not a default permission and as such you're probably trying to post without first checking they have granted to permission to do so. If you're finding multiple users are causing this error, consider only asking for permission when your app needs it. From the Facebook Graph API docs:
For cases where someone has granted some permissions but not others,
only prompt for missing permissions at the point at which they are
needed. For example, if your app posts stories to Facebook, only
request publish_actions when they ask to publish a story.
Alas, I could be way off - but that's what I think is happening based on your description. There isn't much else that could be causing that if it works sometimes and not others, given your error message is an exception from the Facebook API itself.
If you are using a test account along with the API for testing on Facebook and you are trying to post Facebook content such as a link to a video that has been uploaded to Facebook, then you will get this error.
In my case I was using the API to post this video: https://www.facebook.com/LADbible/videos/the-turkey-whisperer/4699159626797857/ to my test user accounts facebook page and I was getting that error. When I used a different link facebook allowed the post to go through.
This may not be a fix for you but maybe for anyone else coming across this permissions error.

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.