Facebook feed出版附件的多个属性 [英] multiple properties for facebook feed publishing attachment

查看:100
本文介绍了Facebook feed出版附件的多个属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在FBConnect.xproj中,Feed字符串如下:

In the FBConnect.xproj, the feed string is as follows:

dialog.attachment = @"{\"name\":\"Facebook Connect for iPhone\",\"href\":\"http://developers.facebook.com/connect.php?tab=iphone\",\"caption\":\"Caption\",\"description\":\"Description\",\"media\":[{\"type\":\"image\",\"src\":\"\",\"href\":\"http://developers.facebook.com/connect.php?tab=iphone/\"}],\"properties\":{\"another link\":{\"text\":\"Facebook home page\",\"href\":\"http://www.facebook.com\"}}}";

属性部分如下所示:

...\"properties\":{\"another link\":{\"text\":\"Facebook home page\",\"href\":\"http://www.facebook.com\"}}}"

我想知道,我如何做多个属性?在Facebook SDK文档中没有明确的例子,例如,我想要显示:

I want to know, how can I do multiple properties? There is no explicit example in the Facebook SDK documentation. For example, I'd like this to show up:

another link: Facebook home page 
yet another link: Twitter home page 
AND another link: ESPN home page

我似乎无法正确获取括号/逗号位置...有人完成了设置多个属性吗?请告诉我如何!谢谢!

I can't seem to get the bracket/comma placement correctly...has anyone accomplished setting multiple properties? Please show me how! Thank you!

推荐答案

您可以在这里给出多个属性:
\properties\ {\another link\:{\text\:\Facebook主页\,\ href\:\http://www.facebook.com\},\另一个链接\:{\text\:\Twitter主页\ ,\href\:\http://www.twitter.com\},\AND另一个链接\:{\text \:\ESPN主页page\,\href\:\http://www.espn.com\}}}

You can give multiple properties as here: \"properties\":{\"another link\":{\"text\":\"Facebook home page\",\"href\":\"http://www.facebook.com\"}, \"yet another link\":{\"text\":\"Twitter home page\",\"href\":\"http://www.twitter.com\"}, \"AND another link\":{\"text\":\"ESPN home page\",\"href\":\"http://www.espn.com\"}}}"

这篇关于Facebook feed出版附件的多个属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆