I am trying to write a facebook app using Facebook C# sdk 5.1.1. The app should let the users to upload a picture to a Facebook page. I was able to write the app where only the admins of the page are able to upload the picture but not users. Even if the user has liked that page I am not able to do it.
I know its possible because on iPhone or from web site you can visit a page and write something on wall or share a photo. But I am not able to figure out how to do it using Facebook API.
the user of the application needs to grant the publish_stream permissions.
You can then make a call to
https://graph.facebook.com/<page_id>/feed?message=<yourmessage>&picture=<picture_url>&access_token=<access_token>&method=POST.
You can try this first by using the Graph API Explorer
Hope this helps.
Related
I am writing a Facebook App for my organization. We want to automate posting pictures to certain albums on our Fan page using the graph api. I have created the Facebook app in Facebook. My app requests publish_actions and manage_pages permissions in order to post the photos to the albums. I have written all the code to make it post the pictures. I have successfully posted pictures to albums on our Fan page using the app. I have NOT submitted my app to Facebook for "Review" to be approved.
Problem:
Only my user can see the photos in the albums that were posted by the app. I have editor permissions on the Fan page. I am the only developer of the app. If I add a tester or another developer to the app, that new user can see the photos that have been posted to the fan page by the app. So, my guess is that Facebook has to review and approve my app before the photos that are posted by the app can be viewed by all users. But I have found no documentation to prove my theory. Am I right or have I done something else wrong? I don't want to go through a 7 day wait for the review and approval and still have the same problem. Please let me know.
No Facebook doesn't need to approve it. You just need to take the app Live. There is a big Live button under Review & Status
So I am making a website and I really want to use a lot of the beautiful images on facebook pages on my site. A lot of them are on facebook and I'm not sure the best and most legal way to do this is. There are a ton of articles online about this but they are wishy washy and have left me still confused on what I can can't do.
So what I think I've concluded is I can't download images, save them on my database, and change them in any way without consent of the facebook page. This is true even if they are public I think. Although I can use the graph api on anything that is public.
I'm just very confused with the whole image copyright world right now and would love some insight.
You can you Facebook Graph API to retrieve all of your photos.
If you're developing your own site, you can create an Facebook App, this app has permission of getting photos.
Then, you grant this app to authorize with your facebook account. Once you grant the app, you have an access token to retrieve photos via Facebook Graph API.
I am trying to make an iOS app integrated with the Facebook SDK that allows the user to post directly to a facebook group page and receive updates directly from the group page through the app, as an alternative to the facebook app.
I know that the Facebook dialog class in the latest SDK allows us to share a status directly to one's wall but I have yet to find a way to post it to a page other than the user's wall. Is there a way to gain access to a facebook group page and retrieve the posts from the page and also post directly to it?
Is there anything I need to do to make posts users make on their wall via a custom ios application using it's own facebook app id, also appear on app's (facebook app it uses I mean) own facebook page?
I would expect this to appear automatically but it doesn't seem to be the case.
In order to read one's Facebook wall, you need the access token to authenticate reading. This will give you access to all non-public wall posts. From this, you can pass the newly posted content to your page through the feed action.
Reference: http://php-academy.blogspot.com/2011/04/how-to-post-from-facebook-app-to.html
Enjoy and good luck!
I have a Facebook application that posts to the users feed when they are using my application.
My company, which developed the Application, have their own page (as a page of my personal Facebook account).
Is it possible when the user Logs In to my app with their Facebook credentials that I can post to their feed (I can do this) AND to the feed of my Facebook business page at the same time ?
If so, any pointers/guidance would be appreciated. Thanks.
Yes this is possible, no not at the same time and not the same feed story.
If you grant publish_stream permission to application this is possible without interaction of user with Feed Dialog, if not you'll need to bring Feed Dialog twice (one for personal profile and one for page publishing).