facebook-javascript-sdk

Permission denied error in all.js

霸气de小男生 提交于 2019-12-28 13:22:24
问题 I am using all.js for facebook implementation. I used a facebook button on signup page . by logging through facebook i am getting user name and email of facebook user into the fields on sign up page. It's working fine on Chrome, Safari and Firefox but its giving error on IE8. the error is in all.js line 22 {FB.UIServer._loadedNodes[a.id]=b;if(a.params)b.fbCallID=a.id; Please help me if any one knows why this problem is occuring . Thanks Udham 回答1: Try this out. It worked for me, may help some

Facebook (JavaScript) permission dialog for email - Error

蹲街弑〆低调 提交于 2019-12-26 03:52:05
问题 I am developing a Facebook application with FB JavaScript SDK. I need email permission on start of the application I am using OAuth Dialog. Here is the code: <html xmlns:fb="https://www.facebook.com/2008/fbml"> <body> <script src="http://connect.facebook.net/en_US/all.js"></script> <div id="fb-root"></div> <script> // assume we are already logged in FB.init({appId: '*************', xfbml: true, cookie: true, oauth: true}); FB.login({ scope: 'email,user_birthday', }); </script> <a href="https:

Facebook API - Using javascript sdk and searching public posts for hashtags

谁说我不能喝 提交于 2019-12-25 19:01:57
问题 I'd like to bypass the login and run a hashtag search on public posts to return a value of the posts and if possible, the number of total likes. Is this possible? I have setup the javascript SDK, but haven't seen any documentation referring to my issue. Thanks! 回答1: Searches for public Posts require an User Access Token, see docs here: https://developers.facebook.com/docs/reference/api/search/#access_tokens So, you'll have to do soemthing like this: GET /search?q={your_urlencoded_hashtag}

error: cannot find symbol method dowloadandDisplayImage(Image,ImageView)

倖福魔咒の 提交于 2019-12-25 18:08:29
问题 error: cannot find symbol method dowloadandDisplayImage(Image,ImageView) error: incompatible types: <anonymous AdListener> cannot be converted to NativeAdListener public void showHomeScreenFacebookAds(View rootView) { AudienceNetworkAds.initialize(this); try { this.nativeExitAd = new NativeAd(this, getResources().getString(R.string.fb_exit_native_id)); this.progressBarExitRefresh = rootView.findViewById(R.id.exit_progress); this.nativeAdContainerExitAds = rootView.findViewById(R.id.exit_ad

Facebook share custom story on my timeline using javascript sdk

无人久伴 提交于 2019-12-25 16:59:53
问题 This is a very novice question that i am not able to find a solution to i have spent a lot of time in reading their official documentation but it's all in vain, so i have come here as a last resort. What i am trying to do I want to post my custom story on my timeline, 1)I have created a custom story 2)have tried to share it with a share dialog[did not work], and have tried the api call also. <div id="fb-root"></div> <!-- facebook code starts here --> <script> function statusChangeCallback

Auto post (user behalf) on facebook

心已入冬 提交于 2019-12-25 09:26:37
问题 I've been searching and haven't found an answer. I've a website that has a livetracking service. I already use the javascript facebook share feed so that users can post on their facebook page their and others activities. I wonder is at the moment (I know it had been possible in the past) is possible to post on user behalf. I already have a process to get a long lived token. The goal is to give the ability of auto post when users start/end activities, informing their followers. 回答1: A third

Not able to schedule a post on Facebook User profile and Facebook group

最后都变了- 提交于 2019-12-25 07:02:14
问题 I'm trying to schedule a facebook post on user profile and a group but api is giving me following exception: (#200) You do not have permission to create a scheduled post I have following permissions from the user: 'public_profile','email','publish_actions', 'manage_pages','publish_pages', 'user_managed_groups', 'user_posts' Do I need any other permissions from the user ? Also, I found one thread which mentions that we can't schedule a post on user profile and user group. Is this expected

Cron job for scheduling/posting facebook post any time

狂风中的少年 提交于 2019-12-25 06:56:03
问题 Use Case: User can post anytime on Facebook even after 6 months. In the backend, I'll be storing the posts with user content and will be running a cron job to make post through access token. This way I can post on user/page/group withoout any issues. But it seems cron part is not very clear to me. Consider following scenario: User A wants to schedule his post at 7 pm on Thursday. User B wants to schedule his post at 7:05 pm on Thursday. User C wants to schedule his post at 7:03 pm on Thursday

Using Like Button and FB.ui (apprequests) On the Same Page Conflicts

旧时模样 提交于 2019-12-25 03:59:08
问题 I've ran into a problem with a canvas app. If the code for the Like button is enabled, the FB.ui call 'apprequests' gives an error. If I comment out the Like button, its back to normal. Calls with 'stream.publish' work normally tho. My Init code: FB.init({ appId : '12345', status : true, cookie : true, xfbml : true, channelUrl : '/channel.html', oauth : true }); The code for the Like button, generated with the FB tool: <div style="padding-left:177px"> <div id="fb-root"></div> <script>

How to use facebook publish stream method in a '.js' file

扶醉桌前 提交于 2019-12-25 03:35:13
问题 I am using bellow code which is in a '.php' file, to publish stream. <script src="http://connect.facebook.net/en_US/all.js"></script> <script> FB.init( { appId : 'MY_APP_ID', status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); var publish = { method: 'stream.publish', message: '', picture : 'http://www.associationregion.org/images/stories/slides/Upload.png', link : 'http://apps.facebook.com/puzzlegts/'