我使用以下代码在当前用户Feed上发布帖子:
NSMutableDictionary *postParams = [[NSMutableDictionary alloc] initWithObjectsAndKeys: @"http://url.com/image.jpg", @"picture", @"The title of the post on the feed", @"name", @"Caption text", @"caption", @"Description text", @"description", nil]; [self.facebook requestWithGraphPath:@"me/feed" andParams:postParams andHttpMethod:@"POST" andDelegate:nil];它工作得很好,但我无法弄清楚如何设置帖子名称后面的链接(“帖子的标题”)。 现在,链接如下所示:
https://www.facebook.com/connect/uiserver.php?app_id=[MY_APP_ID]&method=permissions.request&redirect_uri=[THE_URL_OF_THE_PICTURE]&response_type=code&display=page&auth_referral=1有没有办法轻松控制这个网址? 谢谢!
- 编辑 -
这是我要创建的一种帖子的屏幕截图:
http://cl.ly/image/020D1z3S2L16 。 蓝色标题“Jet'aienvoyénddédédansAnnées80”背后的链接非常干净(就像http://itunes.apple.com/app/[APP_NAME一样))我也想这样做。
我认为这不是一个开放的图形动作,只是一个基本的帖子。 谢谢
I am posting a post on the current user feed with the following code:
NSMutableDictionary *postParams = [[NSMutableDictionary alloc] initWithObjectsAndKeys: @"http://url.com/image.jpg", @"picture", @"The title of the post on the feed", @"name", @"Caption text", @"caption", @"Description text", @"description", nil]; [self.facebook requestWithGraphPath:@"me/feed" andParams:postParams andHttpMethod:@"POST" andDelegate:nil];It works great but I can't figure out how to setup the link behind the name of the post ("The title of the post on the feed"). For now the link looks like the following :
https://www.facebook.com/connect/uiserver.php?app_id=[MY_APP_ID]&method=permissions.request&redirect_uri=[THE_URL_OF_THE_PICTURE]&response_type=code&display=page&auth_referral=1Is there a way to control this url easily? Thanks!
-- EDIT --
Here is a screenshot of a kind of post I want to create :
http://cl.ly/image/020D1z3S2L16. The link behind the blue title "Je t'ai envoyé un défi dans Années 80" is really clean (just like http://itunes.apple.com/app/[APP_NAME]) and I'd like to do the same.
I believe this not an open graph action, just a basic post. Thanks
最满意答案
Facebook源参考中概述了Facebook源的所有参数, https://developers.facebook.com/docs/reference/api/post/ 。
相关的是“名称”,“标题”,“描述”或“消息”。 因此,如果您所指的元素不受影响,则您无法控制它。
"xx shared a link" cannot be controlled through a post. Facebook is performing tons of A/B testing to decide what to display...
更多推荐
发布评论