Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to insert an @mention into a Facebook status update posted with pyfacebook?

I have some code like the following in my application:

message = "Hi, @John Doe!"
postID = fb.stream.publish(
    message = loader.render_to_string('wall_post.phtml', {'message':message}),
    action_links = simplejson.dumps([{'text': "Check out blah", 'href': "http://blah.dev"}]),
    target_id = 'nf'
)

Is there any way to represent a facebook @mention in the message string so that facebook converts it to a profile link for the mentioned user?

like image 708
Thomas Avatar asked Dec 05 '25 18:12

Thomas


1 Answers

I've also been looking for an answer to this. The facebook website uses the format:

@[139730900025:PhotoGrabber] is awesome

to represent the links but I haven't been able to make that work. I re-posted a thread on the facebook forum under the "Stream" category since your post wasn't getting any attention:

http://forum.developers.facebook.com/viewtopic.php?id=47885

like image 57
tam7t Avatar answered Dec 08 '25 12:12

tam7t



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!