Facebook seems to have discontinued the publish_actions permission recently so that apps can't post for a user anymore:
https://developers.facebook.com/docs/graph-api/reference/v3.1/page/feed#publish
The recommended alternative is to use the share dialog. Is there any way that the share dialog can be configured so that it would post to pages (that I don't own) instead of posting to the users feed?
Related
Which permission is required to post on facebook main wall or timeline through personal website c#?
like pages_read_engagement,pages_manage_posts is required for posting on Fb Page
By “main wall” you mean the user profile timeline?
That is not possible any more via API, that has been removed a while ago.
https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#login-4-24:
The publish_actions permission has been removed. Apps that have already been approved for publish_actions can continue using the permission until August 1st, 2018. If you want to provide a way for your app users to share content to Facebook and Instagram beyond this date, we encourage you to use our Sharing products instead.
as per facebook's documentation they will be removing "publish_actions" permissions after August 1, 2018. As an alternative they have suggested to use Share Dialog https://developers.facebook.com/docs/sharing/reference/share-dialog , But share dialog doesn't serve my purpose as previously I was publishing photos to users timeline from my plugin using "publish_actions" adding that photo a any specific album present on user's account, however Share Dialog is now allowing me only to share link of the photo which gives user different exeprience. Is there an alternative way to post photo to any of the user's album without using "publish_actions" permission.
TIA
Ruby
Take look on publish_groups.
"The publish_actions permission is deprecated in Graph API v3.0. Apps can still post stories via mediated experiences like the Facebook Share Dialog on the web, or the Share Sheets for iOS and Android. Apps can publish to groups through the publish_groups permission, which requires an app go through review."
https://developers.facebook.com/docs/apps/review/faqs/?fragment=graph-api-3-0
section:
"My app uses the user_managed_groups permission. Is it affected by v3.0?"
Hope this helps
I want my site users to share a custom post to their Facebook timelines using Feed Dialog. But I am stuck with permission issues. The post_id is not coming after the user successfully shared the post. The post_id requires the app to have publish_actions granted, as per the Facebook doc (https://developers.facebook.com/docs/sharing/reference/feed-dialog).
Snapshot of the feed-dialog doc
But when I tried to give the permission in the App Review section by adding publish_actions, it says that my app should not be using publish_actions to using Feed Dialog feature. Both of the documents are contradicts each other. I am confused.
Snapshot shows where it denies to use publish_actions permission for Feed Dialog
(https://developers.facebook.com/docs/facebook-login/permissions/)
Please guide me if I am missing something at this point. Thank you in advance.
When requesting publish_actions permission the message says the app is willing to post on your friends' wall but I actually just want my app to let the user post videos on his own wall. Do I need this permission to do so?
If you just want to share a Link (to a Youtube Video, for example), you can just use the Share Dialog - no authorization or permissions needed: https://developers.facebook.com/docs/sharing/reference/share-dialog
If you want to upload a photo or video, you will need to authorize the user with publish_actions. Keep in mind that the message must be 100% user generated.
Check out the "Publishing" part of the Facebook docs: https://developers.facebook.com/docs/graph-api/reference/v2.1/user/videos
A user access token with publish_actions permission can be used to publish new photos.
...well, that is actually a bug in the docs, it should be "videos", not "photos", of course. I´ve filed a bug report for this: https://developers.facebook.com/bugs/303448543173296/
General information about sharing: https://developers.facebook.com/docs/web/share
Do you use standards dialogs? According to the facebook api documentation you don't need this permission for theses dialogs.
(see: https://developers.facebook.com/docs/facebook-login/permissions/v2.1#reference-publish_actions)
If you use the Facebook Graph API you don't need this permission if you only want to post on the user feed.
I have tested with "publish_stream" permission, and my app can publishes an item to the user's feed with this permissiom. But there is a major problem with this
When the "publish_stream" permision is reqisted, it frightens the users because the Facebook warning or prompt is scarry : "Post to Facebook as me. .... may post status messages, notes, photos, and videos on my behalf"
For a lot of users, this is a deal breaker. They do not want anyone posting as them
b) I became of fan of TopGear and CBSnews -- these applications are able to post news to my newfeed -- without me giving them "publish_stream" permission.
So what is the best permission to use for this purpose ?
publish_stream is required for the app to publish as the user to the users feed via the graph api. No permission is required if you are using the javascript FB.ui method of publishing because the user has the option of typing in their own message and/or cancelling it.
If you become a fan of a page, those pages aren't publishing updates as you. You are simply seeing their updates in your home page stream. Your friends won't see those updates unless they also become a fan of that page.