I am trying to tag a photo using /{photo-id}/tags. These are the parameters I am sending:
{
tags = "[{'tag_uid': 'FRIENDS_ID', 'x':1, 'y':1}]";
}
This works fine if i use my App-Scoped ID, but it doesn't work with my regular ID.
This is the error that i am receiving ("(#100) The global X id is not allowed for this call"):
So, it does work with my App-Scoped ID, retrieved using /me, but it doesn't work with any other regular ID, neither mine or of my friends.
Do any of you have ideas of what's causing this?
As I already commented, you can only use App Scoped IDs in Apps, and those are only unique in your own App. You can only match them with another App you own, by using the Business Mapping API.
For tagging, you should use taggable_friends: https://developers.facebook.com/docs/graph-api/reference/v2.1/user/taggable_friends
Related
In my C# application, I am using Microsoft Graph SDK with Azure AD implementation.
Please suggest me how to search users in my organisations (global contacts) based on search parameters .
For example , if "Raj" is the search parameter, I should be able to get all users with their name contains "Raj" or email address contains "Raj".
I found this method to get all users - "graphClient.Users.Request().GetAsync();". but, with this method limited response, I am not getting what exactly I want to search.
Thanks,
Shashidhar
Adding to the previous answer: to accomplish this through the Graph C# SDK, use the Filter() method:
graphClient.Users.Request().Filter("startsWith(displayName, 'k')").GetAsync()
You can use other methods on the request to customize the request, e.g. Select(), etc.
According to your description, I assume you want to search the users by using the search parameters.
Based on this document, we can currently search only message and person collections.
And I have tried the filter query parameter, the parameter is currently not supported the contains operator from this document. So if you want to search the user with name or the email address, we can use the startswith operator only.Like this:
https://graph.microsoft.com/v1.0/users?$filter=startswith(displayName,'k') or startswith(mail,'k')
It will find the user's diplayName or mail which is start with the k
I'm trying to figure out if there's a URL I can use to point to a Microsoft Live user profile,
For example, facebook allows https://www.facebook.com/app_scoped_user_id/{ProviderKey value}
What would it be for Microsoft?
https://account.microsoft.com/profile/{ProviderKey value} ??
These two seem to work today, but there is no guarantee they will continue to do so:
http://cid-XXXXXXXXXXXXXXXX.profile.live.com/
https://profile.live.com/cid-XXXXXXXXXXXXXXXX/
XXXXXXXXXXXXXXXX is the user's 16-char alphanumeric ID.
Is there a method to return a specific attendee's information by sending:
1) the attendee's email address
2) my user_key
3) my app_key
I could do this by searching the returned xml from this "event_list_attendees" method, however, I would prefer to only receive the one result (not hundreds for each call).
Note: I work on the platform team at Eventbrite
Currently there is no way to search for a specific attendee with event_list_attendees.
However, you can cut down on the amount of data returned by paging through the results until you have found the attendee or using the modified_after parameter if you know when the user was last updated: http://developer.eventbrite.com/doc/events/event_list_attendees/
I realize this limitation is non-ideal. We're actively working on building a new API which is more RESTful and does not have issues like this.
HI,how do i get multiple twitter name using API querystring,exmaple i need to populate related with the name of 'john'.how can i do that here i have one example below 'http://search.twitter.com/search.atom?q=from%3Ajohn' by this example we can see only particular user name only but i want related name.Kindly let me know ASAP.
You can use the OR operator...
http://search.twitter.com/search.atom?q=from%3ADWRoelands+OR+from%3AJohn
HI,how do i get multiple twitter name using API querystring,exmaple i need to populate related with the name of 'john'.how can i do that here i have one example below
'http://search.twitter.com/search.atom?q=from%3Ajohn' by this example we can see only particular user name only but i want related name.Kindly let me know ASAP.
You can use the OR operator...
http://search.twitter.com/search.atom?q=from%3ADWRoelands+OR+from%3AJohn