Reading news feeds from Facebook fails after upgrading graph API 2.0 - iphone

Hi There is a requirement in my application, where we need to show the user news feeds. For this we were using Facebook permission "read-stream" before Facebook has changed their list of permissions.
Now after they have shifted to the new API v2.0 there are comments saying that
"read_stream permission is granted to apps building a Facebook-branded client on platforms where Facebook is not already available. For example, Android and iOS apps will not be approved for this permission. In addition, Web, Desktop, in-car and TV apps will not be granted this permission."
If this is so what is the alternative to make my app fetch news feeds as earlier.
There is a another permission called "User_Posts" which says "Provides access to the posts on a person's Timeline. Includes their own posts, posts they are tagged in, and posts other people make on their Timeline"
But i am not able to see any posts or news feeds in my application when i have replaced "read_stream" with "user_posts".

The alternative is the user_posts permission and the /me/posts endpoint. Of course this does not return posts of friends for privacy reasons. You can read more about that in the changelog.
If you don´t get any results, make sure the Access Token includes the user_posts permission and debug it in the Debugger.

Related

Facebook SDK permissions for tagging

I want to get my app approved by Facebook. My app is sharing posts on the users timeline. I requested the user_friends and publish_actions for this. Both got approved from Facebook.
I also requested the "Taggable Friends API", but this wasn't approved.
Do I even need this to publish content with a friend choosen via user_friends? Or is this somehow unrelated to what I'm doing? I only found OpenGraph examples with it and I'm not using OG in any place.

Access user's news feeds via Facebook Graph API

Pacific controls systems is developing a web application which includes gadget. we have a requirement to show a user's news feeds in a gadget. This requirement could be fulfilled with "me/home" Facebook API endpoint but this endpoint is deprecated right now.
Facebook API documentation redirect developers to use "me/feed" instead "me/home". To get access to user's news feeds we need "read_stream" permission. But according to Facebook support forum, this permission only be granted to apps which aims on platforms where Facebook is not already available.
Is there any workaround available to fulfill our requirement?.
read_stream does not exist anymore since a very long time. You can use user_posts instead, just keep in mind that you will not get all posts. Detailed information can be found in the changelog: https://developers.facebook.com/docs/apps/changelog#v2_3
Possible feed endpoints are listed in the API reference: https://developers.facebook.com/docs/graph-api/reference/v2.5/user/feed
Usage of user_posts has to get reviewed by Facebook before it can be used for users without a role in the App, it is called "Login Review": https://developers.facebook.com/docs/facebook-login/review

Facebook show friends posts

One of our feature is to display the posts of our facebook friend. And that is made possible by Facebook Query Langauge FQL. Unfortunately FQL has been deprecated by FB in favor of Graph API which has stricter permissions. A possible replacement is the Graphs API user_posts permission where we can query user posts via user feed.
However the docs says:
"Your app needs user_posts permission from the person who created the post or the person tagged in the post."
Are there still alternative to get get user posts even without users permissions?
You only should be able to access friend's posts if your friends gave at least user_friends and user_posts permission to the same app.
If so, you'll only have access to those friend's posts, not to all your friends. An no, there's no workyround. Facebook did this on purpose with the introduction of the Graph API v2.0.

Friends activity in /me/home

I use /me/home for get my newsfeed, but I didn't see some friends activity(comment, sharing, like). Somebody know is it possible
You need the read_stream permission for that, and you will most likely not get it approved:
This permission is granted to apps building a Facebook-branded client on platforms where Facebook is not already available. For example, Android and iOS apps will not be approved for this permission. In addition, Web, Desktop, in-car and TV apps will not be granted this permission.
Source: https://developers.facebook.com/docs/facebook-login/permissions/v2.2#reference-read_stream
That being said, i am pretty sure you only get posts of friends, not comments/shares/likes. It´s about the stream, not the activity feed.

Get facebook posts from group from others if I am NOT admin

SO, I belong to some facebook group. I am not admin and I want to get all posts from that group by others,
Idea is to filter those and get notification when someone posts something that passes filter.
Example, to get notification when post containing string "laptop" is posted.
Like this:
http://i.stack.imgur.com/yjaYT.jpg
I tries looking into facebook API but cannot find anything if I am not admin...
https://developers.facebook.com/docs/graph-api/reference/v2.2/group/feed
You can read the feed of a group with a User Access Token of any user that is member of the group, not sure what you found for Admins but they don't even get mentioned in the docs.
Keep in mind that you need the user_groups permission, and you will most likely not get it approved:
This permission is granted to apps building a Facebook-branded client on platforms where Facebook is not already available. For example, Android and iOS apps will not be approved for this permission. In addition, Web, Desktop and TV apps will not be granted this permission.
Source: https://developers.facebook.com/docs/facebook-login/permissions/v2.2