如何使用 pyfacebook 发布流?
嗨,
谁能告诉我如何使用 pyfacebook 在用户个人资料上发布故事或新闻源,我使用了
fbml = "<fb:wide><fb:subtitle>This is the subtitle</fb:subtitle>"
fbml += "<fb:if-is-own-profile>This is your profile.<fb:else>This is not your profile.</fb:else></fb:if-is-own-profile></fb:wide>"
request.facebook.profile.setFBML(fbml, request.facebook.uid)
return request.facebook.redirect(request. facebook.get_url('profile', id=request.facebook.uid))
以及:(我在某个论坛上找到它)
request.facebook.profile.setFBML(fbml, request.facebook.uid, '', '', '', fbml)
return request.facebook.redirect(request.facebook.get_url('profile', id=request.facebook.uid))
它带我到个人资料页面,但没有显示任何东西,
我被卡住了.. .. 请帮我
HI,
Can anyone tell me how to publish a story or a news feed on a user profile using pyfacebook, i have used
fbml = "<fb:wide><fb:subtitle>This is the subtitle</fb:subtitle>"
fbml += "<fb:if-is-own-profile>This is your profile.<fb:else>This is not your profile.</fb:else></fb:if-is-own-profile></fb:wide>"
request.facebook.profile.setFBML(fbml, request.facebook.uid)
return request.facebook.redirect(request.facebook.get_url('profile', id=request.facebook.uid))
and also: (i found it on some forum)
request.facebook.profile.setFBML(fbml, request.facebook.uid, '', '', '', fbml)
return request.facebook.redirect(request.facebook.get_url('profile', id=request.facebook.uid))
it take me to profile page, but doesn't display anything there
I am stuck.... please help me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
profile.setFBML 用于出现在用户的侧边栏或框选项卡上的框(顺便说一句,这也将在不久的将来完全消失)。
你想要的是stream.publish。
profile.setFBML is for the box that either appears on the user's wall sidebar or boxes tab (this is going away entirely in the very near future too BTW).
what you want is stream.publish.