Welcome Guest, Not a member yet? Register   Sign In
Facebook Integration?
#1

[eluser]FREEZA[/eluser]
Hello!

I want to build a website, where users can login with there Facebook Accounts. Additional they can add Content ( Posts / News ).

When a User had done a post the post should be posted on his Facebook Wall, too!

The first Step:
The first Step ( Login ) i did already. I have all informations about a user.

I did it with that Tutorial:
http://www.dannyherran.com/2011/02/faceb...ntication/


But now the second Step. How i can handle it, that when a user post a news.. this news will posted on his Facebook Wall, too?




Please Help Smile
#2

[eluser]alexaaaaaaaaaa[/eluser]
[quote author="FREEZA" date="1311863353"]Hello!

I want to build a website, where users can login with there Facebook Accounts. Additional they can add Content ( Posts / News ).

When a User had done a post the post should be posted on his Facebook Wall, too!

The first Step:
The first Step ( Login ) i did already. I have all informations about a user.

I did it with that Tutorial:
http://www.dannyherran.com/2011/02/faceb...ntication/


But now the second Step. How i can handle it, that when a user post a news.. this news will posted on his Facebook Wall, too?




Please Help Smile[/quote]

You must give permission to do that see the documentation on facebook.com, short story is that when users logins via facebook it should have something like ... accept to post on your wall accept to render your basic info etc.

After that you have permission to do anything with that user info even post on his wall.
#3

[eluser]FREEZA[/eluser]
hey thx for your answer.

Why a user needs permissions? When he is logged in, he can post News on my Homepage. It already works!

Then this news should be posted on his wall ON FACEBOOK, too!

How i could handle it? Is it possible with Facebook PHP SDK?





I have found this Code, but its not working:

Code:
$attachment =  array(
        'message' => "Hello, here is a post",
        'name' => "",
        'link' => "http://www......",
        'description' => "Write here your description",
        'picture'=> "http://www.yourserver.com/images/test.jpg"
        );
        
        
        $this->facebook->api('/me/feed', 'POST', $attachment);




Theme © iAndrew 2016 - Forum software by © MyBB