Is there any way to get the outlook profile picture using access_token ?
I have also tried with URL :
https://outlook.office.com/api/v2.0/Users('user_id')/photo
But it is asking for username and password. Even when I give outlook credentials I couldnt fetch the picture. Could someone help me with this?
The correct format of the request is the following:
https://outlook.office.com/api/v2.0/Users('abc#abc.com')/photo/$value
Related
I am hoping you can help me with a problem regarding Yammer Export Data.
I have followed the steps in https://developer.yammer.com/docs/oauth-2. received a token code and copied the example
https://www.yammer.com/api/v1/export?since=2012-02-09T00:00:00+00:00&access_token=WOI87382HDL replacing the access_token with my token. But I get the error "This sight can't be reached". I know I am doing something stupid but don't know what. Any help would be much appreciated.
Cheers
Paul
https://www.yammer.com/api/v1/export?since=2016-04-09T00:00:00&model=Message&include=csv with a bearer token for a verified admin works for me. Note that I only added the params of &model=Message&include=csv to ensure I didn't grab all the files in my network which could take awhile depending on the size of your data.
Is the user you are using a verified admin of the network?
I know I can get it with a Google+ user ID, but I don't have that, I just have the users' email address. I don't want to make them login with their Google account.
Is it possible to get the photo? I'm thinking not, but I just wanted to make sure. Here's the most info on it I could find:
https://code.google.com/p/google-plus-platform/issues/detail?id=64
As the feature request says, there is no way to look up a Google+ profile via email address. Since the only way to get a profile's avatar is by looking up their profile, there is no way to get a profile's avatar via email.
Gravatar might be a better fit for what you are trying to do.
You can get their name and profile photo with avatarapi
I am using a facebook php SDK to post image to users album using the user access token. First we will generate the token and then post the image. My issue is that posting image works fine but below each image on right side, facebook adds a link 'via MY APPLICATION NAME'.This link redirects user to my application page in facebook (http://www.facebook.com/apps/application.php?id=APPLICATION ID). I want to change this link to point to my personal website URL (www.abc.com).
Please let me know if this is possible.
I've seen other apps do it, and am looking for the same thing. I've glanced over all the app settings, and am currently reading the api trying to figure it out. It's probably going to be something stupid like deleting all the other urls to force it to default to your site url in the app settings...Let me know if you have any luck with this.
I know it's possible to display public images once I have the access token, but how do I go about getting it? I found the facebook dev docs to be kind've confusing when it comes to extended permissions.
Do i need to somehow register the image gallery/portfolio as an app and have the facebook user who's gallery it is allow it?
Thanks for any help on this!
If I'm not mistaken you just need offline_access extended permission - then your token will (nearly) never expire
based on
http://developers.facebook.com/docs/authentication/permissions
I'm trying to get a user's facebook profile picture based on their email address. Effectively, I want to offer my users the option between using Gravatar for their image, or Facebook. However, the only way I know of to get a user's facebook image is via:
http://graph.facebook.com/[FBOOK USERNAME]/picture?type=large
Since the usernames may vary between facebook and my site, I would like to do this via email address rather than username. How do I query for someone's facebook profile picture via email address?
I see this question has a couple of years already but the same search approach can be taken using the Graph API:
GET https://graph.facebook.com/search?q={EMAIL}&type=user
You can try this on the Graph API Explorer. You don't get the profile picture directly but you get the user id which you can easily use to get the public profile picture.
https://graph.facebook.com/{UID}/picture
There doesn't seem to be an official way to do what you are asking. It seems like facebook has made this closed on purpose, probably something to do with privacy. Its actually really easy to do this in a few screen-scraping steps though:
Visit http://www.facebook.com/#!/search.php?q=#{USERS_EMAIL_ADDRESS}&type=all&init=srp
If page returns "No results found for your query.", then they don't have a profile.
Otherwise, the page will contain a thumbnail of the user for that email address. (something like http://profile.ak.fbcdn.net/hprofile-ak-snc4/hs227.ash2/48219_72120057_3223_q.jpg)
I could write a sinatra app to do this in about 5 minutes, if anyone would like me to.
But I think gravatar and facebook should just be friends.
What you're asking to do is part of why Facebook Connect exists.
Using their not-too-cleverly-named XFBML you can request the image directly:
<fb:profile-pic uid="1256100362" facebook-logo="true" size="thumb"> </fb:profile-pic>
But you have to implement logins with FB Connect first...