Tagging friends in status updates from Facebook API

后端 未结 5 1440
一个人的身影
一个人的身影 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: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);  
    

提交回复
热议问题