Solved

Website - Link accounts with FB

Posted on 2011-09-07
4
209 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now