Question

i really hope, someone can point me into the right direction. I am ordered to write a drawing game for facebook. The concept is, the one, applying for a win, references a friend for the prize (the player won't win anything, just his friend). The customer want's a Post on both Walls/Timelines. AFAIK it's not possible to post on the friend's wall. Right now i am as far, that the App posts on the wall, of whom is playing.

Is it possible to share this Post to his friend without any Dialog or represent to the friend, that he is applied for a prize? The customer wants that this doesn't use any share/feed dialog.

Thanks in advance

Was it helpful?

Solution

After the second day of digging in i came to a solution. As the Open Graph Api mentions, the keyword is tagging BUT, the META tags mentioned in the documentation didn't work for me in any way. I came up to use an Page ID for the place field and used the friends ID as value for the tags field. Once the friend is tagged with the post, he will see the same post on his own timeline. Here's a snippet:

facebook.api('/me/feed', 'POST', {
        'message' : userdata.name + ' hat für ' + frienddata.name + ' einen ' + $('span.buggyname').html() + '...',
        'picture' : 'some picture URL',
        'link' : 'URL to see game result',
        'name' : 'our awesome game',
        'place' : 'pageid of customer',
        'tags' : frienddata.id
    }, function(response){
        console.log(response);
    });
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top