Get the email address of a user in Youtube - facebook

I am currently developing a service that connects a Youtube account with a Facebook account.
More specifically, it will check firstly if the Facebook user has a Youtube account too, and vice versa and then it will create some visualizations.
The problem is that the application will need the user's email to check in either of these SNS' because the username will not probably be the same.
The question in hand is how to get the Youtube user's email account form his channel, in order to search if he has a Facebook account too.

That would not solve your problem either. I could be using a different email for youtube and facebook. Check for some APIs for youtube and facebook that lets the current user do things.
Edit: Here are some links, if we assume that you want to help users upload videos they've uploaded to Facebook to their YouTube accuont.
You can access all the videos uploaded by this URL https://graph.facebook.com/me/videos/uploaded?access_token=YOUR_TOKEN
which will give you a list of Videos
(found this information at the facebook API reference)
Then you can use the YouTube API to upload those videos to YouTube: https://developers.google.com/youtube/2.0/developers_guide_protocol_uploading_videos

Related

How to add blogger's RSS feed to facebook profile/page

I have a blog and I want that whatever is posted in the blog should get directly posted on my facebook profile/page. Basically I wish to post my blog's RSS feed to my facebook profile/page. I used RSS Graffiti to accomplish the task but somehow it seems like that isn't working.
You should forget about the user profile for that. First of all, you are not allowed to use the user profile for commercial reasons, it´s ONLY a user profile, for you and your friends, not a platform to advertise. And then there´s the problem with the Access Token. An Extended User Token lasts for 60 days, so you would have to refresh it every 2 months if you want to autopost stuff to Facebook.
Now for your Facebook Page, you can create an Extended Page Token that lasts forever. The rest is explained in the Facebook docs: https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed#publish
In general, you need to use a Page Token with publish_actions to post to the /page-id/feed endpoint.
Information about Access Tokens and how to generate and extend them:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/
At this point, Facebook does not let you add an RSS feed to automatically do that.
I would recommend using a tool like IFTTT which does it very well!
Facebook between 2009-2011 had a feature which allowed you to add blog feeds from any format to your profile so it would publish. It was later introduced into Facebook Pages and some how discontinued in the main profiles of users on Facebook, so that businesses appear as businesses and everyone else appears as everyone else, since currently on my profile on Facebook, my content from Flickr, Twitter, Google+, YouTube and my other accounts are automatically published to my main Facebook profile. This is because I signed up and started using Facebook in 2009 to the current date.
What really annoys me is that there is so much info online about how to do this but I have to say is that Facebook can easily adjust it's service to include RSS Feeds in it's platform through the app http:// facebook .com/apps/feed , which basically shows your updates from the games you play on Facebook, which is annoying that Facebook hasn't even got round to replacing RSS Feeds into profiles.
I'll send some support requests to Facebook (lets say tons of support requests) and I'll ask them to add it back in because other users are slightly annoyed. I'm annoyed with the childish icons that they have (including the icon for the Instagram app, which, yes, is owned by Facebook).
Another way is by connecting your apps that you use to your Facebook account by going to either the respective app in Facebook itself or by finding the setting Connect To Facebook in the Settings of your accounts on other Third-Party services. As an example, you can use PlayStation Network (PSN) by connecting your PlayStation account to your Facebook through the PS4 itself by going into Settings > Account Settings > Link Services > Facebook and then type in your login details, as usual. This will log you and keep you signed into your Facebook account on your PSN account. This means that everytime you interact with PSN by the associated Facebook service, your interaction is posted to Facebook based on the settings whether it's set to post as Private or Public. This means that everytime you play a game or decide to setup a Live Stream, your post is posted to Facebook from the PS4 automatically. Same method could also work with Blogger app for Facebook by connecting your Facebook to your Blogger account (in Google+ settings if you've switched to the new profile interface). So it's possible, yes, in other apps now more than before so it's also the reason for why Facebook probably removed Feeds.
If anyone wants to see my updates from my connected apps and connected data, you can follow my Public hashtag posts at http://facebook.com/search/top/?q=%23warrenwoodhouse and you can follow the same hashtag on every service available including PSN, Facebook, Twitter, Google+, Google Search, Google Images, Google Videos, YouTube, YouTube Gaming, Instagram, Flickr and other services. If you're interested in seeing my full feed updates, I've created a nice feed on FeedBurner at http:// feeds. feedburner .com/warrenwoodhouse

Facebook Permissions for mobile application?

i want to publish images from mobile app to server,server to Facebook. what are the steps needed to get approval from facebook?
Note:
1 ) MobileApp--->Facebook(Login)
2 ) MobileApp--->Server(Sending AccessToken, UserId, Images, UserComments)
3 ) Server------>FaceBook(For sharing).
Am creating mobile applications for both iOS and Android, In which am using Facebook login and share functionalities. Once the user logged-in through facebook i will take the access token and account id from the particular user and saved it into database in my server. On share screen i am showing customized UI for posting images where user can give their own comments,If the user press the share Button i send that Images and user comments to the server,there they will post the images and comments from server directly along with the UserId and AccessToken of that particular user to the facebook. what are the basic steps needed to get the approval from facebook for publish_action?please suggest some ideas...
The Review Guidelines can be found here:
https://developers.facebook.com/docs/apps/review/login
Please refer to them if you have questions concerning the process.

Upload photo from my system to company Facebook page without having users authenticate individually

I have an application where my staff upload photos for specific tours. My priority is to have the photos uploaded to my system to use in my site and product display. However, every time any of my staff upload a photo in my system, I want to send the photo to our corporate facebook presence. Preferably with a little story about each photo.
Everything I have found seems to require each user to log in with their own facebook accounts individually. Is there a way to code authentication with my facebook account details regardless of who the user is and then take the photo uploaded on my system using cffile and send it to our corporate facebook presence?
I would post code attempts here, but at this point I am still not sure if this is possible. Any guidance would be appreciated.
Thanks.....
posting photo with some text is possible on Facebook using your system. all you need to do is to visit developer.facebook.com and register an app and get the required authentication key. and follow documentation of graph API. ColdFusion Facebook SDK is also available on Git Hub. that makes you job more easy.

Can you use Facebook Graph API to post a photo to a brand account as well as user account?

I am working on a project where a photo is taken and the user can share their photo on Facebook. We would use oAuth and the FB Graph API to post the photo and caption to the users' timeline. The client just made a request to also post it to their (the client's) photo album as well. So when the user submits a photo, it would post to the user's timeline as well as the client's timeline/album. Is this double post (to two different accounts) possible? Wouldn't that require that the client be logged in via oAuth as well? Also, are there any FB legal/regulation issues with this so long as the application has a disclaimer that it will be posted to two different places?
The entry for the user is a new photo to the apps album for that user. me/photos
However the entry that goes to your clients page... I don't think people can do id/photos of others or pages. (it's worth a shot)
You'll have to stick to id/feed and perhaps include a link to an image host.

Facebook Share in emails

Is it possible to use the Facebook share api within an email?
What i'm trying to achieve is for an email to be sent to someone with a link to a video (or video attached depending on the size).
Within the email would be a Facebook share button that would allow them to upload the video to FB (from a web url).
Thanks
PVS
The closest you'll get is to link the user to Facebook's Sharer.
For example, if you wanted your users to share a link to www.google.com, you'd do this
Share Google!
Obviously what you'll really do is use a URL to your domain that holds the content being shared. For information about specifying the proper meta data (including how to specify a video) see the documentation for Facebook Share.