How do you authenticate a user to post status updates to Twitter and Facebook?

Posted on 2015-02-03
Medium Priority
Last Modified: 2015-02-05
I'm writing an application that will post a status update in Twitter and in Facebook. I'm confused about how to authenticate the user. I will need to do this for many different users, so I will need each user to allow access.

Does anyone have a working example of authenticating a user and posting a status update in either Twitter or Facebook or both?

I'm writing in PHP.

Much obliged.
Question by:EffinGood
  • 2

Author Comment

ID: 40589358
Yeah, I got that. But a working example would be the most help to me as I had originally indicated. Any ideas? Thanks a lot.
LVL 25

Accepted Solution

Kyle Hamilton earned 2000 total points
ID: 40590856
i use an oauth library which i have not had any issues with.


it's not really possible to provide a working example of this as this in not a simple task, and every application will have its own nuances. the script above provides some examples you can work from

Author Closing Comment

ID: 40591929

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

587 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