I am trying to create an action on an article so when a user, who has authorized the app lands on article, it publishes the fact they've read the article to their timeline.
This works for me without issue but when anyone else tries it, they get an error along the lines of
Requires extended permission: publish_actions
I saw a notice on Facebook saying :
While in Open Graph Beta, the 'publish_actions' permission can only be
requested from developers and test users of your app. The
'publish_actions' permission will be ignored if requested from any
other user.
However, the likes of Spotify, Guardian and Independent utilize pretty much exactly what I need. How come? What are they doing differently to me?
You have to submit your created action types here: https://developers.facebook.com/apps/<app_id>/opengraph - once they have been approved you will be able to use them publicly.
You have to submit the actions also you need to take the permission from the user.
There are two types of permission, user permission and friends permission. Your suppose to take 'publish_actions' permissions from user as well as from friend.
Related
I would like to know whether it is possible to post on facebook group using facebook page with graph API or not.
I have been struggling finding solutions for this.
Pretty sure that that’s not currently possible.
https://developers.facebook.com/docs/graph-api/reference/v9.0/group/feed#publish says the requirements include that a user access token is used, and that the permission publish_to_groups must be granted, and the description of that permission also uses phrasing that indicates pretty clearly, that this is supposed to be used to publish as a user, not a page.
https://developers.facebook.com/docs/permissions/reference/publish_to_groups
Facebook denied the publish_actions permission because we auto-populated the message, meaning we didn't allow users to type message. We post our generic message. I've seen there are apps that are allowed to auto-populate the message i.e. game apps that post scores to user's timeline. My question is, can you still auto-populate the message with newly created apps? If so, what steps do we need to take. I've read around and found that Facebook policy changed, and if your app was created prior to policy changing, you lucked out and are allowed to auto-populate messages. Wanted to get clarity on this if anyone knows.
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
We are developing an app for a website and would like to take permission from the user to post on their wall, if they approve, we want to post on their wall a small post notifying the connected friends that this person has installed this app. But we are not getting the proper differentiation between publish_stream and publish_actions.
Also, how to code to post on their wall?
publish_stream actually includes the publish_actions permissions and adds a few more permissions such as
posting to a friend’s feed,
posting questions
creating notes
posting content to events or groups
If you do not need these 4 extra permissions then you don't need publish_stream. And you must avoid publish_stream , which appears on a second screen where users can also opt out.
Also, how to code to post on their wall?
Did you searched for this? You'll get n number of the links for the same, I would suggest you to go through the docs once, its not so complicated.
(Moreover, you have not mentioned which language you are using)
According to the Facebook Platform Policies:
You must not pre-fill the user_message
parameter or content sent via an
extended permission (such as a status
update or note), unless the user
generated the content earlier in the
workflow.
Does that mean that I can't publish stories to the stream automatically, even if the user agreed to?
I've seen apps (such as PlayStation Network, Foto Diaria) that publish stories automatically.
PlayStation Network publishes stories about actions you did in PS3 games and Foto Diaria publishes a picture from your wall every day. In both cases the attachment is created by the application, and the user message is empty. Could that mean that publishing stories with an empty user message (empty, not absent) is not considered pre-filling?
EDIT: I need to know what is allowed or not by the Facebook Platform Policies, not how to post stories.
If you ask the user for the publish_stream extended permission then you'll be able to post automatically whilst the user is interacting with the application. You can pre-fill the user message only if it's something that the user has entered earlier in the process e.g. if you've asked them to comment on a piece of content and then publish a story about the comment. If in doubt, leave it blank.
If you want to publish automatically even when the user isn't online then you'll also need them to grant the application the offline_access extended permission. In this case you'll also need to store the session key that Facebook gives you for that user.
https://developers.facebook.com/docs/guides/policy/examples_and_explanations/stream_stories/
Check this out. The Platform policies section of the FB Dev site has some additional documents to allow you gain a better understanding of the guidelines for sharing.
Please also read the section about User Feedback.
https://developers.facebook.com/docs/guides/policy/examples_and_explanations/user_feedback/
Hope this helps.
We can ask user to grain of offline_access permission, which is access to user profile at anytime, even if user is not online. But this permission will no longer available.
I agree that this permission is so harmful to user.
But it still useful if owner app want to post to their own account during user use their app. If you want to post to your self account, you can manually grain offline_access to your app, and select access_token and keep it in your own app, and use it when you need to post your account. It make sense that Facebook should allow developer to do this task.
it is simply forbidden but, there is a catch about it, if is text prepared by user previously, you can post that text later and I think you are able to add your own text to that. But not so sure..
I'm saying this based on McDonald's Canada's yourquestions app, you can ask questions to them, whenever its answered they posting to your wall.
But to clarify that, as a PMD I'll ask to FB personally and let you know what is the answer is.