facebook-apps

Facebook: post image and description to wall and in page album via php

不想你离开。 提交于 2019-11-27 02:28:42
问题 I want users to post an image on a facebook page via a form on a website. When they have logged in via facebook on this website, they can select an image from their computer. Once they have selected the image, I want it to be posted to the users wall, and in an album of the page where I'm one of the administrators. I have created an app for this, but we can't seem to find a way to get the app to post on this facebook-page. Do we need to set any permissions on this page or app? 回答1: To upload

how to get email id of Facebook user using javascript sdk

有些话、适合烂在心里 提交于 2019-11-27 00:42:56
问题 I am using JavaScript API to create my app for Facebook. The problem is, it's returning email = undefined . I don't know why? And if I use Facebook login/logout button on my app then the alert shows correct email id of the user but I don't want to do that. What am I missing? Here is my code: <p><fb:login-button autologoutlink="true" perms="user_about_me,email"></fb:login-button></p> <script> window.fbAsyncInit = function () { FB.init({ appId: '250180631699888', status: true, cookie: true,

facebook access token is invalid - trying to post to facebook website-“page” via app using a cron

空扰寡人 提交于 2019-11-26 21:59:50
问题 I am trying to post to my website's Facebook fan-page via a cron on my server. I created a user on Facebook named "John Doe", i made him admin on my website's Facebook fan-page and then i created an app from that user in sandbox mode, so only he, "John Doe" can "run" it. I gave the necessary permissions to my app from "John Doe" who runs it. I can manually get the access tokens through developers.facebook.com and use them to post from my php cron script to my website's Facebook fan-page

Get Facebook User ID from app-scoped User ID

╄→尐↘猪︶ㄣ 提交于 2019-11-26 12:24:12
问题 With the upgrade from Facebook Graph API v1.0 to v2.0, Facebook is using \"App-scoped User IDs\", so I cannot see the \"original\" user ID inside my apps anymore. I always used the Real Time Updates and graph API calls like \"https://graph.facebook.com/{postId}/comments\" to analyze user activity on the Facebook page where the app was. But since these data contain the original user ID, I\'m not able to match the activities to my registered users anymore! So is there a way to get the original