Is there a way to upload photos to my existing facebook album with the javascript SDK without any authorization ? For example, I know my facebook ID and the image URL what I want to upload.
Without authorization you cant upload images to an facebook album.
Take a look at this answer:
Facebook Graph API - upload photo using javascript on stackoverflow
Related
With the graph API you can upload to an album specific to your application if you have publish_actions/publish_stream.
https://developers.facebook.com/blog/post/498/
What I want to know is how to create a link back to the original content, like in photos uploaded by Instagram, as shown here;
Is this a special integration with Instagram since they are owned by FB, or is it just an undocumented parameter?
Instagram's photo uploads are using the Open Graph APIs here, they're using action with an attached photo which links back to their site, I'm unsure if the 'View on Inastagram' link specifically is publicly available, but photo uploads that link back to the photo inside your own app are possible for any app, and are documented here
In the facebook graph api we have a attribute (picture) for attaching a image with a post. The source of the image has to be some location on the server. I have a file upload control on the page, can the uploaded image(not yet submitted) be used instead of images on the server?
I need to give the user an option to upload a image from his/her computer and that image will be posted on facebook using graph api. But since i don't have a path to the image, how would I do this?
From facebook documentation 'how to':
Publishing an Photo
In order to publish a photo to a user’s album, you must have the
publish_stream permission. With that granted, you can upload a photo
by issuing an HTTP POST request with the photo content and an optional
description to one these to Graph API connections:
https://graph.facebook.com/USER_ID/photos - The photo will be
published to an album created for your app. We automatically create an
album for your app if it does not already exist. All photos uploaded
this way will then be added to this same album.
...
Uploading a photo to your app’s album. Creating a new album and
uploading a photo to the album you create.
https://developers.facebook.com/blog/post/498/
Also, you may upload your photo with Graph method /me/photos
I am developing a greeting card application. Greeting card should be posted to multiple friends' wall. I had used graph API to upload picture to friend's wall using [friends_Id]/photos post. Using this approach Facebook will create an album in to that user account automatically rather than creating or sharing photo to friends. After photo upload this newly created album will be shared to friends. This is not the option which I'm looking.
Facebook will use the same album for other photo uploads. Since album was shared to some friends, all previously shared friends will get notifications on their news feed for this new photo upload. So I omitted this approach.
Second I used posting image link to friend's feed. This time Facebook won't allow me to post image links with hosted on their server saying that FCDN images are not allowed in stream.
Hosting a server will be an expensive option for me.
Third I used photo tagging approach. This work well. But this is not the required option.
In Facebook website there is an option to share a photo in an album to my friends wall. Can I implement this approach using graph API? Is there any option to share an uploaded image to friend's wall using graph API?
I hope that my question is clear to you... Please help.. :)
Perhaps this approach will work you. See https://developers.facebook.com/blog/post/526/ where you can post to a wall and refer to an existing photo, or basically attach a photo you own to a friend's wall. So here are the steps:
1) Upload the photo you are interested in sharing to your album. Note the photo ID.
2) Send an HTTP POST to https://graph.facebook.com/[FRIEND_ID]/feed with the object_attachment parameter set to your photo ID.
Please note that you will need an access token with publish_stream permission.
Hello I am using Twit Pic in my app.I want to upload selected photo to facebook also ..How could I do this.If I upload then how to know user is logged in at fb?
You could try a framework such as ShareKit to facilitate sharing the image on facebook.
I don't think there is a way to tell if the user is logged in without requesting permission to access her account, perhaps via the Facebook sdk.
Is it possible for a Facebook App to submit a photo (with user's permission) as a profile photo?
Yes see here it even contains sample PHP code to get you started