Facebook Unity SDK 5.0.4 iOS Feed回调缺少帖子ID

时间:2014-03-03 22:37:18

标签: facebook-unity-sdk

以下是Xcode在调试模式下在iOS上运行我的应用的截图,发布了一个Feed:http://screencast.com/t/ium048TZi9

字典中缺少postId。当我在FB墙上看到帖子时,的提要帖正在工作。所以,这只是iOS回调没有得到帖子ID。

在Android上,这是按预期工作的。在SDK的早期版本中,它也被破坏了。

以下是生成Feed的c#代码:

// the ID of the wall to post to facebook.  Leave blank for logged in user
string FeedToId = "";
// The URL to which this post should link.  Default: The base URL of the posting application, as configured in the Developer App
string FeedLink = "http://apps.facebook.com/slotsvacation-foxcub/?action=feed&postGuid=" + _fbPost.postGuid.Base64Encode();
// The name of the story, shown at the top and rendered as a hyperlink with href set to link.  Default: The app name, as configured in the Developer App
string FeedLinkName = "Slots Vacation";
// A short description, rendered below linkName in the story.  Default: The app base URL
string FeedLinkCaption = "Share the Loot!";
// A longer description, rendered as the main body of the story.
string FeedLinkDescription = string.Format("Click this to get {0} {1}.", SharePrizeAmount(_lastPrize.value, prizeType), TreasurePrize.GetNameForPrize(prizeType));
// The URL of a picture, in PNG of JPEG format, to display beside the story; see the Feed Dialog documentation for details.
string FeedPicture = "http://slots-vacation.s3-website-us-east-1.amazonaws.com/images/facebook/feeds/FBfeed_bonus_tropical.png";
// The URL of audio or video content to display beside the story; see Feed Gaming documentation for details
string FeedMediaSource = "";
// The text of the action link; see actionLink, below
string FeedActionName = "";
// A link rendered at the bottom of the story which can optionally have a different target than the main story link; see documentation
string FeedActionLink = "";
// A name for the category of feed post, used in Facebook Insights to help you measure the performance of different types of post
string FeedReference = "P_W_Prize";     

Dictionary<string, string[]> feedProperties = null;

FB.Feed(
    toId: FeedToId,
    link: FeedLink,
    linkName: FeedLinkName,
    linkCaption: FeedLinkCaption,
    linkDescription: FeedLinkDescription,
    picture: FeedPicture,
    mediaSource: FeedMediaSource,
    actionName: FeedActionName,
    actionLink: FeedActionLink,
    reference: FeedReference,
    properties: feedProperties,
    callback: FeedCallback
);

1 个答案:

答案 0 :(得分:2)

如果通过facebook ios应用程序发布故事,除非您拥有publish_actions权限,否则不会返回任何帖子ID。