Facebook publish_actions deprecated: Upload a photo - facebook

We have an ElectronJS program where we'd like people to be able to take a photo and upload to facebook. However, after reading facebook's documentation, they have removed the publish_actions permission.
Further reading of Facebook's documentation makes reference to using their graph api sharing (https://developers.facebook.com/docs/sharing/reference/feed-dialog).
However, it's not exactly clear as to whether or not a photo can be uploaded or the only option is to be shared as a link?
I was hoping to get some clarification, now that they've removed the publish_actions, what now essentially?
Alternatively, are there any other solutions?
Cheers

You can only share URLs, there is no uploading via the dialogs.
You will need to upload this photo to your own server first, and then create a URL that returns the appropriate OG meta tags, including the one for the image you want to use as thumbnail. (You could also share the image URL directly, but that usually doesn’t look very nice.)

Related

How do you set a link for photos uploaded to your application album on Facebook?

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

Add a tab to a Facebook page that allows users to post photos to already created albums

I am wondering if a tab in a Facebook Page can be created that would allow the users of the page to upload photos to the page's albums. I've looked everywhere for such solution, but I can not find it.
Does such ready solution exists? If now, can someone provide me with a ready solution for such functionality? I would be very grateful.
Regards,
Kiril
You need to use Facebook Graph API to achieve this.
Familiarize with the following links, they will put you on the right track:
http://developers.facebook.com/ (#1)
http://developers.facebook.com/docs/authentication/ (#5)
http://developers.facebook.com/docs/reference/api/ (#4)
http://developers.facebook.com/docs/reference/api/permissions/ (#2)
https://github.com/facebook/facebook-php-sdk (#3)
The first thing you want to do is create an app (#1). Then you need to authorize the page you want to use with your app (#2; offline_access, publish_stream is what you are after). If you are developing using PHP then see #3 link. This will make things easier handling signature_request.
Assuming you want to create a form on a Page that will allow anyone to upload pictures to your Page. Create file upload form as usual. Once you have the file, initiate file upload to the Page gallery using Graph API (#4; http://developers.facebook.com/docs/reference/api/photo/). You also might want to authorize every user who uses your upload form, to distinguish uploaders.

iOS Facebook Can't post source image to wall can only post links

So from reading around a bit on this issue, it is becoming apparent to me that I cannot post an image/photo from my app to my wall as a source attachment. The only way I can show an image in a wall post is by linking to an image on the internet. I can only post a photo form within the app to the photo album on facebook.
So my question is, does anyone know how I can get my in-app image posted to my facebook wall (and not posting the image to the photoalbum)?
Sounds like you have the same problem I had just a couple of weeks ago. Did you also get the error message starting "FBCDN image is not allowed in stream..."?
It seems you've already figured it out, but since Facebook isn't quite as informative towards developers as they could, other readers may benefit from this, too.
Your app can easily send photos to the user's Facebook photo album
Your app can easily post to the user's News Feed
You can even use Facebook Graph API to pick up the ID of the photo you just sent, and use that to assemble the URL for the photo (the URL works just fine – typing it into your browser will show the photo, no problem)
BUT your app simply cannot use the photo URL in any News Feed Posts. And contrary to what one might assume, this is not a bug or any other problem you could fix, but a Facebook policy since summer, 2010.
Here's the official RSS feed stating their decision:
Serving Images in Stream Stories Jun 18, 2010 3:21pm
We no longer allow stream stories to contain images that are hosted on
the fbcdn.net domain. The images associated with these URLs aren't
always optimized for stream stories and occasionally resulted in
errors, leading to a poor user experience. Make sure your stream
attachments don't reference images with this domain. You should host
the images locally.
In conclusion, if you must have the News Feed post, you need to host the photos on your own server and link to them in the post, as Siegfried said. Although, some successful developers would argue that if you want to make your app scalable, in case it becomes the next big thing in App Store, avoid using your own server (See the Pulse News app's makers comments here: http://itunes.apple.com/us/itunes-u/developing-apps-for-ios-sd/id395631522# - hack #3)
As for me, since my app's so tiny, and I'm a small-time developer, it didn't make sense to start hosting stuff on a server of my own, so I just settled to uploading the photo to the user's Facebook account anyways and using the photo caption to tell the user's friends what I had to say, instead of the wall post.
I think you should use a server with some php scripts - then use ASIHTTP library or sth similar to upload your photo there - as a result you should get a link to the photo on your server. then use it while publishing to fb.
sounds scary but it's not that bad - ASIHTTP is very straightforward, there are tons of php scriptw for uploading photos on the net
Facebook now allows images in the wall posts that are hosted on fbcdn.net domain. It may not completely answer your question as you don't want the images in the photo album. But here are the steps.
Get photo_upload permission from the user
Once granted, upload photo to an album (users can only post photos to their own albums)
In the callback, you get the id of the photo object just posted.
Get properties for this photo object via another graph api call.
In the callback, you get all the properties - search for the object url
Create a wall post and use the retrieved url (in step 5) in the attachment.
It will display the image in the wall post. However, if you don't want to upload images to user album, you still need to host the image somewhere before you can include the link.
I asked this question a while ago and figured out an answer too. Here you go:
Facebook Connect on iOS - Picture doesn't display with wall post

Is there a way to update a photo and its message?

I'm developing an iOS App which uploads some photos on Facebook.
I'd like to update the photo I uploaded earlier and also its associated message when data is updated in my app. Regarding the Facebook Graph API documentation, I believe there is no permission to do that, am I wrong?
I'm not sure I completely understand your question, but here's what I gather.
There is a permission that allows you to manage photos, ("user_photos"), which is listed under facebook's permissions reference.
I gather you want to know if there's something that would allow you to update a photo. To my knowledge the answer is no. However, you can easily delete the object instead, and then simply reupload the object, which I gather you've already implemented.
In the Graph API, every photo is an object with a url where it resides, so if you send a 'DELETE' post request to the url, you will be able to delete the photo.
It's described in http://developers.facebook.com/docs/reference/api/ under "Deleting".

How to display my photo albums and photos that are in FB on my own website

I would like to display my photo albums and photos that are in FB on my own website. However everything I have tried requires an access token that I seem to only get if I login to FB. I don't want visitors to my site to have to login to FB to see my photos.
Is there a way to get this data and not require a login? I want to pull data from my own FB account. Or is there a different way to authenticate my access behind the scenes so visitors don't have to login, to see my photos?
Facebook has recently launched a way to share the album with public without having to Signin. Every album will have link below this key word Share this album with anyone by sending them this public link. Take a look at this HOW TO for more information.
EDIT: However, for embedding refer this SO which explains how to grant permanent access to your photo albums
Another option is using 8 photo restricted Facebook Photo Badge
Showzey seems to be working on liberating your photos and provides widgets.
Facebook has a badges page that has different options for embedding Facebook content onto your site. The photo badge should fit your criteria.
May be this method could help you guys.
You can do it through a public fan page or a business page.
I put this script together a while back: http://roughgiraffed.com/FBalbum/. Working on a more legit version - will post when complete.
You can combine galleria (open source javascript image gallery framework) with a plug-in to integrate with facebook.
You can find the links bellow:
http://galleria.io/
http://www.alexanderinteractive.com/blog/2012/03/display-facebook-photos-on-your-website-with-galleria/
I'm using this very nice plugin for Joomla. Take a look.