开发者

Add friends Facebook profile page to jQuery UI dialog

I getting a link to a friends profile page using the Facebook JavaScript API. I now am trying to add it to a iframe in a jQuery UI dialog. I have:

$('<iframe src="https://www.facebook.com/profile.php?id=505818552"><p></p></iframe>').dialog();

However this displays a Facebook logo with a 'go to facebook' link in the jQuery dialog. I tried using load(url) before 开发者_JS百科dialog() but it didn't work because of cross-domains.

I was wondering if Facebook disables this kind of thing?

Is there a way of getting it to open in a jQuery dialog?


We do not allow this. Instead, please create a Facebook App and get the user 505818552 to authorize your App.

Then you will be able to pull that user's friends list by querying

https://graph.facebook.com/505818552/friends?access_token=USER_ACCESS_TOKEN


Yes, FB disables being included in an iframe as seen in this live demo.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜