开发者

Post to wall: link in description is removed

Our开发者_如何学JAVA app can post to a friend's wall successfully. However, if the message contains a url it is auto removed by Facebook. If manually posting to a friend's wall the link in the message shows up ok. Is this a Facebook app limitation? If so, is there a way around this limitation?


They're doing that to prevent link spam. Otherwise Facebook would be FILLED with links to pr0n, V14gr4 and w4r3z.

I expect that Facebook is executing a bit of Javascript in your browser when a live human posts to a wall. That Javascript would let their server know that the link was posed by a browser that supported Javascript. That's not likely to be the case for web applications that talk HTTP directly.

If I'm correct, then you will either need a Javascript interpreter integrated into your app, or if what Facebook expects as a response is simple enough, then you could just fake it out by sending a canned response.

Try looking at your friend's wall while running a Javascript debugger, then make two posts, one with and one without a link. You could also place a protocol analyzer between your compuer and the Internet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜