I am making a backend for a client in php/mysql. I am almost done, now they want a couple of input fields for facebook and twitter so they can autopost to facebook and twitter. The backend allows them to post articles, images etc.. to the main site, when they do that, they now want(when they hit send) for that info to be submitted to facebook and twitter as well.

I just started some research and see that facebook has a php sdk is that a good place to start? I just don't know where to begin with this and need some advice.

This is the function you call, you pass it a variable that contains the message you want to post and it does so. The four items 'consumer key', 'consumer secret', 'user token' and 'user secret' are codes you need to get from twitter to let you post.

With that ThmOath.php, I had to change two lines of code to get it work as it complained about them not being set for some reason. If you experience that issue let me know and I'll point out what I changed.

darkwarrior
—
2011-05-21T12:11:00Z —
#7

Thanks for that link nay nay, got it working great, just need to figure out how to make it post as the group page and not my personal account.

naynay99
—
2011-05-23T14:19:09Z —
#8

Sweet! Good to hear. Which link? Damnsemicolon? I will be working on mine end of the week and will keep you posted! Thanks again.

darkwarrior
—
2011-05-23T16:47:32Z —
#9

The second one, tips4php. Facebook is really hard, I had a lot of trouble getting the tokens I needed but I can now post to a business page as the business instead of myself. Will be a pain doing that for each person that needs it but at least I know its doable.

rickh101
—
2012-05-02T20:17:07Z —
#10

darkwarrior said:

The second one, tips4php. Facebook is really hard, I had a lot of trouble getting the tokens I needed but I can now post to a business page as the business instead of myself. Will be a pain doing that for each person that needs it but at least I know its doable.

I read this entry you made, about a year ago. I, too, am trying to post on the wall of a business page that I administer AS THE ADMIN...not as myself. I've almost got it. I've granted the app manage_pages permissions, and can post to the page, but it's still AS MYSELF. Can you hlep me to determine what else I may have to do to post AS ADMIN? I keep reading about UID, and page-ID and things like that, but can't find examples. A little lost. Working in PHP. What resources did you use to help you suceed? Any hlep would be aqppreciated. Thanks. Rick

darkwarrior
—
2012-05-02T20:55:22Z —
#11

rickh101 said:

I read this entry you made, about a year ago. I, too, am trying to post on the wall of a business page that I administer AS THE ADMIN...not as myself. I've almost got it. I've granted the app manage_pages permissions, and can post to the page, but it's still AS MYSELF. Can you hlep me to determine what else I may have to do to post AS ADMIN? I keep reading about UID, and page-ID and things like that, but can't find examples. A little lost. Working in PHP. What resources did you use to help you suceed? Any hlep would be aqppreciated. Thanks. Rick

It might be a bit confusing to follow but theres a section on there called "Post as a fan page". You basically take all the tokens and things you have and generate a new token that represents the admin of your business page, and that is the token that lets you post as someone else.

It might be a bit confusing to follow but theres a section on there called "Post as a fan page". You basically take all the tokens and things you have and generate a new token that represents the admin of your business page, and that is the token that lets you post as someone else.

Yes. I thought that was the concept, but couldn't figure out how to list the page-specific tokens. YOU DID IT! Worked like a champ. Thanks Dark...or do they call you Mr. Warrior. Sincere thanks for the final piece of my 24 hour puzzle. R

darkwarrior
—
2012-05-02T23:07:58Z —
#13

rickh101 said:

Yes. I thought that was the concept, but couldn't figure out how to list the page-specific tokens. YOU DID IT! Worked like a champ. Thanks Dark...or do they call you Mr. Warrior. Sincere thanks for the final piece of my 24 hour puzzle. R

No problem, glad I could help. Something to note, anytime you change your FB password, all your tokens will become invalid and you'll have to do the process again for new tokens.

rickh101
—
2012-05-02T23:20:46Z —
#14

Good to know. Thanks again. Can I be opportunisitc and pick your brain again? I know this is on a sort of unrelated topic, but if you have any thoughts, great. Here 'tis: I'm admin'ing a page for a company that, for years, used a profile instead of a page. An FB no-no. So last week I ran the FB profile - to - page migration tool. It did OK. Converted friends to likes, etc. BUT....the original profile is gone. I sort of expected that, but then again I'm still getting emails for events that the original profile had joined and have no way to quit the groups. It's as if a ghsot of the old profile DOES still exist. I was able to do the auto-post we're discussing in this tread by assigning my own, personal profile as an admin for the page in question. That works, but I'd like to get the old (even if now friendless) profile back. Any thoughts? Ideas? Gracias.

It might be a bit confusing to follow but theres a section on there called "Post as a fan page". You basically take all the tokens and things you have and generate a new token that represents the admin of your business page, and that is the token that lets you post as someone else.

I too am having problems with autoposting since all the recent changes to FB. I had sucessfully been posting to a page as the page for some time, then about two months ago, it just quit working. I've tried everything trying to get it to work again, but it seems all the tutorials available are from before all the FB changes in the API. Could one of you please Outline the steps needed to get this working again, and possibly give some code examples.