Android Facebook-sdf Exception: Failed to generate preview for user

前端 未结 2 1717
春和景丽
春和景丽 2021-01-26 03:18

i\'m developing a simple android app and i want post a status in facebook using OpenGraphObject and OpenGraphAction.

if i use new FacebookDialog.ShareDialogBuilder

2条回答
  •  粉色の甜心
    2021-01-26 04:02

    We had the exact same error some times ago. Check you are using the correct action type in OpenGraphActionDialogBuilder. We fixed the same error just using the correct action type parameter. In your case you should check if "yourcity:visit" is the name of the action. Go to developer consolle https://developers.facebook.com/x/apps/your-app-id/open-graph/action-types/ and click on Get Code for the action you want to implement. Then read the url that should looks like something like this:

    https://graph.facebook.com/me/app_namespace:app_action?...

    then use the correct app_action in your code. It should fix!

提交回复
热议问题