Tagging friends in status updates from Facebook API

后端 未结 5 1413
一个人的身影
一个人的身影 2020-12-23 21:39

I recently came across this blog post that said that it\'s possible to tag someone in a status update from a Facebook app (= from the API):

However, it doesn\'t seem

相关标签:
5条回答
  • 2020-12-23 22:07

    I have tried for hour but I think there needs to add new bug report. It was working year before as posted by Debjit.

    You should make bug report to facebook. (If doesn't exist).

    Have updated on following posts:

    1. how to tag users in application post of a facebook application
    2. Tagging people in a Facebook Post?
    3. Tagging a user in a wall post/update using Facebook API
    4. How to let users tag their friends in a Facebook status update posted from a tab on a Facebook page?
    0 讨论(0)
  • 2020-12-23 22:13

    https://apps.facebook.com/profile_ranking is uploading a picture and you can tag people in pictures not in status messages.

    To Tag people in picture

    curl -F 'access_token=xxxxxx' -F 'url=https://appharbor.com/assets/images/stackoverflow-logo.png' -F 'message=@[100000891609024:Silient Killerz]' https://graph.facebook.com/me/photos

    In Graph Api Explorer
    Make the call post, set url to https://graph.facebook.com/me/photos,
    Add field with key message and value @[100000891609024:Silient Killerz] (replace it with your friend id and name)
    Add another field with key url and value https://appharbor.com/assets/images/stackoverflow-logo.png
    click submit

    0 讨论(0)
  • 2020-12-23 22:22

    Yes it is possible in this format: @[{user_id}:1:{name}]

    Try this tutorial: http://digitizor.com/2011/01/24/tag-user-facebook-graph/

    0 讨论(0)
  • 2020-12-23 22:24

    below code worked for me , try if you don't want to show place in post then use the same code i mentioned $params['place']='155021662189'; that code won't show the place in Post

                 $params=array();       
    
                 $params['message'] = "Hi Friends ";
                 $params['tags']='12345678903,1234567654'; //comma separated friends ID's
                 $params['place']='155021662189'; 
    
                 $params['name'] = "Some namee";
                 $params['link'] = "http://blaha.com";
                 $params['description'] = "blah blah blah blah";
                 $params['picture'] = "image link"; 
                 $params['caption'] = "Join ";
    
    
                $shared=$facebook->api("/".$user['id']."/feed", "post", $params);
                             or 
                        $shared=$facebook->api("/me/feed", "post", $params);  
    
    0 讨论(0)
  • 2020-12-23 22:25

    I was struggling with this problem last week and found the following bug report, which suggests (given the current ASSIGNED status) that it cannot be done yet:(

    http://developers.facebook.com/bugs/395975667115722/

    0 讨论(0)
提交回复
热议问题