Click here to Skip to main content
15,922,584 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I update status on multiple facebook accounts on clicking one send button in my website. And also status should also get update when user is logged out from the facebook
Posted
Updated 12-Aug-11 2:31am
v2
Comments
Slacker007 12-Aug-11 7:12am    
Please elaborate.
khushboo86 12-Aug-11 7:45am    
How can I update status on multiple facebook accounts on clicking one send button in my website. And also status should also get update when user is logged out from the facebook
#realJSOP 12-Aug-11 8:35am    
He said "elaborate", not "repeat".
khushboo86 12-Aug-11 8:40am    
Didnt you guys understand this or should I write steps of this ??
TRK3 12-Aug-11 19:51pm    
Your question has multiple different parts and it's not clear what you want help with. Are you asking:

a) How to post something on facebook? (See Facebook GRAPH API.)

b) How to do it with a single click? (How do you loop in PHP?)

c) How do you enable updates even when the user isn't logged in? (See Facebook GRAPH API).

d) How do you write code? (Gimme codz plz.)

1 solution

Do you already understand how to update a single facebook acount?

Look at the facebook GRAPH API documentation. (You need to log into Facebook to look at the API documentation.)

You'll need to get each user to login and authorize your program to update their accounts. One of the things you can request authorization for is "OFFLINE" permission -- which basically translates to permission to post for an extended period of time. I don't have any first hand knowledge of how long an extended period is, but I do know if you don't include "OFFLINE" in your request for authorization, you'll have to get authorization pretty much every time you want to post something.

Once you have a list of users who have authorized your posting to their accounts, then you just need iterate over that list when the button is pressed.

Is that your question, or are you actually asking a question relating to how to do it in PHP?
 
Share this answer
 
Comments
khushboo86 16-Aug-11 0:22am    
Thank you for helping me out. Thank you so much.
I know how to update a single facebook account. But just one another question, how can I iterate number of accounts ?? Can you please help me with this part ??
TRK3 16-Aug-11 12:55pm    
Hi khushboo86,

I haven't written PHP code, so I'm not familiar with the particulars of programming in PHP.

PHP has several different loop constructs [see: http://www.php.net/manual/en/language.control-structures.php].

So it's really a matter of how/where you store the account information.
If you know how to do it with one account, then you just do the same thing in a loop.

If it's the PHP part that you need help with and not the facebook part, then you might want to post a different question that just asks about that. That way you'll get people who are familiar with PHP to give you some advice or direction.
khushboo86 17-Aug-11 0:19am    
thank u so much for your help :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900