如何发布Facebook自定义图形故事?

时间:2016-04-27 05:31:48

标签: android facebook facebook-graph-api

虽然我从Android应用程序的开发模式成功发布了作为测试用户的操作,但当我尝试提交此操作以供审核​​时,Facebook仍会显示以下消息。

  1. Image of Shared in Facebook
  2. Image of Alert while submitting App action for review to Facebook
  3. 这是分享行动的代码示例。

     ShareOpenGraphObject object = new ShareOpenGraphObject.Builder()
                .putString("og:type", "game")
                .putString("og:title", "Janoki Tiger English Competition!")
                .putString("og:description", "I got " + ans + " score in Janoki Tiger English Competition! I'm ranked " + rank + "th out of " + participants + " participants!")
                        //give a image url here
                .putString("og:image", "")
                .putString("og:url", "https://play.google.com/store/apps/details?id=venturas.bd.janoki")
                .putString("fb:app_id","")
    
                .build();
    
    
        // Create an action
        ShareOpenGraphAction action = new ShareOpenGraphAction.Builder()
                .setActionType("venturas-bd-janoki:game")
                .putObject("game", object)
                .build();
    
        // Create the content
        ShareOpenGraphContent content = new ShareOpenGraphContent.Builder()
                .setPreviewPropertyName("game")
                .setAction(action)
                .build();
    ShareDialog.show(this, content);
    

0 个答案:

没有答案