Facebook发布新闻提要和帖子“名称”背后的链接(Facebook post on news feed and link behind the “name” of the post)

编程入门 行业动态 更新时间:2024-10-27 00:29:19
Facebook发布新闻提要和帖子“名称”背后的链接(Facebook post on news feed and link behind the “name” of the post)

我使用以下代码在当前用户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=1

Is 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...

更多推荐

本文发布于:2023-07-31 23:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1351762.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:提要   名称   链接   帖子   新闻

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!