djalmaaraujo / facegroup

A Facebook Group Reader
http://facegroup.me/
10 stars 4 forks source link

Add links to users mentions in comments / posts #2

Open djalmaaraujo opened 10 years ago

djalmaaraujo commented 10 years ago

When someone mention another user, create a facebook.com/user

chip commented 10 years ago

How does the app identify a "mention"?

djalmaaraujo commented 10 years ago

To identify a mention it is pretty simple. The JSON of a message, comes with a "tags" object with all users mentioned. There's a easy way to use and play around with the json in facebook graph api.

Check it out the graph api explorer: https://developers.facebook.com/tools/explorer/?method=GET&path=100005113504613%3Ffields%3Did%2Cname&version=

Djalma Araújo

Skype: djalmaaraujo Linkedin: br.linkedin.com/in/djalmaaraujo Gtalk: djalma.araujo@gmail.com

On Tue, Mar 18, 2014 at 11:53 PM, Chip Castle notifications@github.comwrote:

How does the app identify a "mention"?

Reply to this email directly or view it on GitHubhttps://github.com/djalmaaraujo/facegroup/issues/2#issuecomment-38012935 .

djalmaaraujo commented 10 years ago

"message_tags" is the write object.

https://www.dropbox.com/s/50ynm0zz1kha9vx/Screenshot%202014-03-19%2008.33.26.png