Facebook publish_action permission not working for posting

前端 未结 5 592
攒了一身酷
攒了一身酷 2020-12-13 19:32

Currently i can post news feed updates using objectids of some of my web pages to facebook users who have liked those pages.

Now i\'m trying to test the new open gra

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-13 19:57

    I suspect you are not correctly asking for the permission. This drove me crazy for hours. Even though I was correctly asking for permission and it appeared to authenticate, in reality the permission was not being granted because I had not setup the application correctly for open graph.

    When asking for publish_actions, Facebook shows a preview screen of what sort of aggregations your app will create on their timeline.

    In other words, if the preview isn't working, Facebook won't ask for the permission so you're asking in vain. Facebook doesn't make this clear in the docs, but everything needs to be perfectly setup with your app on Facebook to get this to work right.

    1. Enable Enhanced Auth Dialong in the advanced settings of the app
    2. Make sure you have at least one action and one object set up in the open graph section
    3. For each action you must have an aggregation set up.

    If you do not do all of these steps, there can be no preview and so Facebook won't ask for permission no matter what.

提交回复
热议问题