Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Website - Link accounts with FB

Posted on 2011-09-07
4
Medium Priority
?
219 Views
Last Modified: 2012-08-30
Hi All,

I'm working on a website where I need user to be able to link their website account with their facebook account (for example, they create an account with my website, then in their account management section they are able to link in a Facebook account and in future more account types will be available to link).  More specifically I need permission from the user for the website to post a message to the wall of one of their pages they have created within facebook (eg business pages etc).

Any help (preferably with the more detail the better, example code or description of how to achieve this) are greatly appreciated.

Thanks

Matt
0
Comment
Question by:MattJellings
  • 3
4 Comments
 
LVL 28

Expert Comment

by:strickdd
ID: 36497052
There is a series of articles facebook provides to accomplish this: http://developers.facebook.com/docs/guides/web/

More importantly: http://developers.facebook.com/docs/reference/plugins/login/
0
 
LVL 4

Author Comment

by:MattJellings
ID: 36497098
Sorry, I think I should have made my request more specific and explained things better.. I understand there is the login plugin available, but i need to know how to then link their FB account with their internal website account and subsequently be able to post messages to the wall of one of their pages
0
 
LVL 4

Accepted Solution

by:
MattJellings earned 0 total points
ID: 36516037
I managed to find part of the solution myself to this issue on this page: http://www.barattalo.it/facebook-connect-tutorial/

This allowed me to link my own website account with a facebook account so i now have stored in the DB the facebook user ID and the access token.

From this I was able to use the Graph API to get a list of pages (accounts) that the user managers and store the page ID in the database as well.

The last thing I need to figure out is how to post to the wall of the page as the page itself rather than my own personal account.
0
 
LVL 4

Author Closing Comment

by:MattJellings
ID: 36541394
Eventually managed to find the solution and example code myself
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question