I am trying to implement a feature in my app using Facebook's Mention Tagging API. Most articles online reference the blog post here, which then links to a broken documentation link. I am wondering if this is even possible, as I cannot find any resources on this.
In my app, let's say I have the proper OAuth tokens for the user with all permissions enabled. Let's also I also went through Facebook's approval flow for my app and it has been approved to use this.
The user has 3 Facebook friends, John Smith, Johnathan White, and Joe Roberts.
Within my app, the user types "#Jo" and an autocomplete dropdown list will appear:
John Smith
Johnathan White
Joe Roberts
When the user types "#Joh", this dropdown list will appear:
John Smith
Johnathan White
The user will select John Smith from my app's dropdown menu and publish the post to Facebook. From Facebook, John Smith will be mentioned and the text will link to John Smith's Facebook page.
Now I already know how to retrieve ALL of my friends via taggable_friends API (step 2). I also know how to publish to facebook (step 4). The issue is step 3, as I cannot find any resources on how to implement this.
Is there a Graph API endpoint or an Open Graph concept that allows me to mimic Facebook's autocomplete tagging feature? Looking for something where I am making a separate HTTP request for each letter being typed. I also cannot store a user's friends list into my application's persistent storage.
Is this even possible or is this concept deprecated? Would really appreciate just some pointers to the right direction. Thanks in advance.
Related
With v2.0 in effect, the API /me/friends is now limited to the list of friends that have authorized our app. So, this wont help if I need the complete list of my friends.
But facebook also have added a new API /me/taggable_friends that we can use in order to generate stories that have friends tagged in them, even those friends don't use our app. And if we want to use the taggable friends API, the app will require review.
So, before sending for review I want to make sure that will my app be approved or not? I'm confused since-
the documentation says-
use in order to generate stories that have friends tagged in them;
this answer by facebook product manager mentioned that-
should only be used for the case where you're rendering a list of friends in order to let the user tag them in a post
So I want to know in which scenarios we can use this API that complies with its rules and will be approved when sent for review. For using the OG Actions, of-course it will work (also mentioned in the doc), but will it be approved if-
the an app is just displaying the list the friends and their profile pics. No story, nothing; or
if an app is uploading a photo using /me/photos and tagging the selected friends using the tags parameter. (there's no info of tags parameter in the documentation of /me/photos but it exists).
I'm just asking this to make sure that it will be approved or not before making too many changes.
The guidelines for OG tagging can be found here:
https://developers.facebook.com/docs/opengraph/submission-process#actioncapabilities-actiontagging
Without the context of your action is hard to say if it's acceptable without the user seeing the story and understanding the situation. If you had a bowling app that allowed people to tag their friends while they were all bowling together And no configurable story and the story generated was something like "Bowling with XXX". I think that would be acceptable...
Attaching a story to your OG Story would be another capability as part of Story configuration. Tags would apply to the OG story and the photo.
If you want to upload a photo outside of the OG story you need to look at Photo Upload permissions.
Alice posts an item on her timeline. Bob shares it on his page. Carol shares Bob's share. Is there any way in Graph API that I can work out that Carol's share came through Bob?
Just to close this off, #Shrink is right, it seems to have been possible in the original Graph API but that has been closed off now.
I am new to Facebook API, gone through the diff blogs and Facebook developer and implemented Facebook comments plugin in my site.
I have a question that, do we need to add any thing specific to the country to show the content in their language or Facebook will take care of it?
Because my site is available in different countries like Brazil, Spain, and etc..
Thanks,
Ranjith
As far as I know, the different Facebook plugins use the local of the logged on user. You don't need to handle this yourself.
I ask because some of my users have made complaints that they want their comments sent to friends to look authentic. Thank you.
Well... I looked into this and it is not possible via the API. For anyone else out there struggling with this issue here are the different advices I've uncovered:
You can set your logo to a white box which hides that visual element from the Via line.
You can ask your users for their username/password and scrape/post data as you wish, but use the FB App as a jump-off for user buy-in.
You can pick the most subtle name possible. Today, FB requires 6 or 7 characters for the app name.
I'm trying to grab someones facebook picture from their page while just knowing their email address. I know that the service gravatar.com does this, but a lot of people don't have accounts there so I would like to grab the pictures from facebook. Is this possible? I didn't find anything about this in the developers part of facebook.
Programatically? You may not necessarily have the right to use others photographs. Facebook can because the users have agreed to their T&Cs and uploaded the pictures but I don't think you have any rights concerning the pictures without first contacting the owner.
just a quick look at facebook and i've found that when you are logged in to facebook you can search for users based on email address and that will bring back the avatar. i'd be surprised if neither the api nor the FQL supports this functionality since it seems pretty basic.
+1 evernoob on the legality part. altho it is available to you when you're logged in so i can't see why they'd specifically restrict you.
good luck and let us know the results.
N