facebook-page

What permission(s) do I need to read the names of the users who posted to a Facebook page?

醉酒当歌 提交于 2019-12-11 10:33:24
问题 I want to write a Python script that reads the names of the Facebook users who wrote a message on my Facebook Page. I'm using the facebook-sdk Python library. The lines graph = facebook.GraphAPI(page_access_token) profile = graph.get_object(profile_id) posts = graph.get_connections(profile['id'], 'feed') print(posts['data'][0]['message']) print(posts['data'][0]['from']['name']) work fine when I use a short-lived access token retrieved by just copying it from the Graph API explorer. But when I

Trying to send facebook notification, results in “sorry, something went wrong” response

房东的猫 提交于 2019-12-11 09:04:45
问题 As from the title I am trying to use tha facebook notifications api. I have read the documentation and I am trying to do a POST to the graph like the one following: String notificationURL = "https://graph.facebook.com/" + String.valueOf(facebookUserId) + "/notifications?" + "access_token=444146492324422|8LOOIj7xPT2LFlx14_3SqKCDgVc" + "&href=https://apps.facebook.com/Nmctesting" + "&template=@["+String.valueOf(facebookUserId)+"]! You have won!!"; the access token is the one returned from the

Facebook Graph API posts not appearing for users of page, only admin

风格不统一 提交于 2019-12-11 03:05:00
问题 I created a page on facebook, and am using the graph api to make posts on the timeline. These post show up just fine for me as the admin, but for users the page is empty. I verified with the graph api explorer. As an admin a GET of /NewsCrier/feed is filled with data. As a non admin user the same request returns { "data": [ ] } Here is an example post from the response of my admin user, notice the privacy is set to public: { "id": "383422711781035_404880726301900", "from": { "category":

Pull Facebook Page / Place “Topic” via Graph API

放肆的年华 提交于 2019-12-11 02:40:05
问题 In September 2012, Facebook introduced "place topics" as described here: http://starien.com/facebook-pages/place-topics-on-facebook-pages/ "Topics" act as tags or subcategories for pages and places. These differ from the more generic "category" labels (eg. "local business") by adding a layer of specificity (eg. "liquor store"). Topics are found under the profile image next to a "tag" icon. I'll use this page / place, with the topic "liquor store," as an example: http://www.facebook.com

PHP + Facebook: how to upload photo on the wall?

非 Y 不嫁゛ 提交于 2019-12-11 01:57:00
问题 The usual way as I post messages to my page wall is like: $args = array( 'access_token' => $page_access_token, 'message' => $title, 'link' => $link, 'name' => 'This is title', 'description' => 'This is a testing of the posting on page', //'picture' => 'http://www.example.com/directory/images/30.jpg' ); $post_id = $facebook->api("/$pageId/feed","post",$args); But how can I post an images to my wall - the alternative to: click to UPLOAD button, pick out an image -> and upload, image is on to

Facebook Page default landing tab

筅森魡賤 提交于 2019-12-11 01:56:14
问题 I have a facebook page where I set the default landing page to be a custom tab. This works well if the users have not liked the page; if the user has liked the page the landing page is always the wall. Is there any way to make sure your custom tab is always the landing page no matter if the user has liked your page or not? Example http://www.facebook.com/familiensite Go to this URL and you will see a custom tab as the landing page. Now press "Like" and goto the same url again and the wall is

access_token - Script to upload photo in fan page album

我怕爱的太早我们不能终老 提交于 2019-12-10 23:17:41
问题 I am developing an app to include in my page tab. In this app, the user will go take a picture with your webcam and the picture will sent to an especific album in my fan page. I found an script here: and he is working very well, but I've a problem, the script use an user access_token to upload the picture, dont's necessary ask permission of all users to upload the picture because the script use my administrator user to send to the page. The big problem is: The user access token expire after 2

Can I post on page's wall with an iOS application?

天涯浪子 提交于 2019-12-10 16:23:22
问题 How to post to a page's wall using FaceBook Graph API for iPhone? Should I need to prompt for any permission for that? Is it possible or not? Thanks in advance. 回答1: You can using the Post method. It requires the publish_stream permission. The user needs to have "liked" the page in question. To publish a wall post, POST the message and optional attachment to the feed/wall of the user, page or group, i.e., http://graph.facebook.com/PROFILE_ID/feed. Annoyingly, the one thing that Graph API will

How to create a Facebook fan page for a website in an automated way?

风流意气都作罢 提交于 2019-12-10 14:53:09
问题 We are working on a CMS application development. In that case, we need to integrate a feature, that is enabled for user to create a facebook fan page in an automated way for their product/service. But we realized that it's not allowed by any of facebook developer APIs. So, What we just need is to automation of fan page creation part in a programmatic way. Is that possible to do?? Thanks! 回答1: You cannot create a new Facebook Page via the API - for example, if your client had a company called

Facebook fanpage crawler

巧了我就是萌 提交于 2019-12-08 07:36:56
问题 I would like to write a Facebook fanpage crawler which crawl following information 1) Fan page name 2) Fan count 3) Feeds. I know i can use open graph API to get this, but i want to write some script which will run once in a day and get all these data and dump in my sql db. Is there any better way to do this? Any help is appreciable 回答1: I think its against the Facebook TOS, no long time ago i read some blog where the whriter create some type of spider to collect data about facebook pages