fb_graph icon indicating copy to clipboard operation
fb_graph copied to clipboard

Is post friend tagging supported?

Open pnicholls opened this issue 15 years ago • 6 comments

I have been trying to get post friend tagging working with fb_graph but have not had any luck yet.

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

This does not seem to be working.

  def post_to_wall(message)
    self.facebook.feed!(:message => "@[#{@profile.uid}:1:#{@profile.name}]")
  end

Any ideas?

pnicholls avatar Mar 20 '11 01:03 pnicholls

You can post "@[uid:1:name]" as string.

friend = FbGraph::User.new(USERNAME, :access_token => ACCESS_TOKEN).fetch
friend.feed!(
  :message => "Hello, @[#{friend.identifier}:1:#{friend.name}]"
)

But I'm not sure whether the tagging format works or not.
It's not documented here, so I assume it's just a hack.
http://developers.facebook.com/docs/reference/api/post/

nov avatar Mar 20 '11 07:03 nov

it's dosn't work , I've just tryed that , have any other idea ?

mediazard avatar Apr 15 '11 12:04 mediazard

No idea. According to the comments here, Facebook JS SDK might support it though. http://digitizor.com/2011/01/24/tag-user-facebook-graph/

nov avatar Apr 15 '11 12:04 nov

:message => "Hello, @[#{friend.identifier}:1:#{friend.name}]" doesn't work, just posts Hello,

Is it possible to use :message_tags to create the @friend tag? http://developers.facebook.com/docs/reference/api/post/

fabiogiolito avatar Jan 23 '12 20:01 fabiogiolito

Hey there. Where'd you guys end up on this? Does :message_tags work?

@fabiogiolito? @nov?

tybenz avatar Dec 11 '13 20:12 tybenz

@tybenz I was never able to make it work

fabiogiolito avatar Dec 11 '13 22:12 fabiogiolito