admin管理员组文章数量:1323330
I am currently building an application which also allow users to specify their profile URLs for the various social network such as Facebook, Twitter, Google+ and etc. I will focus this question on Facebook instead for the start.
To allow users to easily input their profile links easily, I will like to have a button on their "Settings" page which they will login to their Facebook account, select the page or profile and it will automatically fill in the Textfield.
I'm new to FB and other social network APIs. It will be good if there is some samples or a documentation I can read up. I've spend sometime on the documentation but don't find anything that mention this.
I am currently building an application which also allow users to specify their profile URLs for the various social network such as Facebook, Twitter, Google+ and etc. I will focus this question on Facebook instead for the start.
To allow users to easily input their profile links easily, I will like to have a button on their "Settings" page which they will login to their Facebook account, select the page or profile and it will automatically fill in the Textfield.
I'm new to FB and other social network APIs. It will be good if there is some samples or a documentation I can read up. I've spend sometime on the documentation but don't find anything that mention this.
Share edited Oct 29, 2014 at 16:32 Stéphane Bruckert 23k14 gold badges99 silver badges135 bronze badges asked Jan 8, 2013 at 9:48 Kong Jin JieKong Jin Jie 5355 silver badges11 bronze badges 02 Answers
Reset to default 7A simple Graph API request gives you the user profile link.
/me?fields=link
Result:
{
"link": "https://www.facebook./profile.php?id=XXXXX",
"id": "XXXXX"
},
{
"link": "https://www.facebook./first.last",
"id": "YYYYY"
}
Learn how to use the Graph API here: https://developers.facebook./docs/reference/api/
You should go through the below link it explains alot ,you can extract information from Facebook using Fql and get all the necessary info for registering user with your site. I have also used it in my website 2shar.in
Facebook javascript api example
本文标签: javascriptGet Facebook PageProfile URLStack Overflow
版权声明:本文标题:javascript - Get Facebook PageProfile URL - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742139971a2422538.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论