facebook-javascript-sdk

using facebook stream publish

≯℡__Kan透↙ 提交于 2019-12-21 06:42:35
问题 I want to publish a URL as an attachment to a friends wall: var attachment={'name':'favor','href':'http://128.196.239.71/movie.php?mid=<?php echo $_GET['mid']; ?>'}; Facebook.streamPublish('',attachment,null,friends[i],comment,callback); Doing the above gives me a Facebook undefined, what should I do to remedy this? Do I need to set a special permission in order to do this to the sender of this message? 回答1: You do need the stream.publish permission in order to use the stream.publish method

using facebook stream publish

♀尐吖头ヾ 提交于 2019-12-21 06:41:19
问题 I want to publish a URL as an attachment to a friends wall: var attachment={'name':'favor','href':'http://128.196.239.71/movie.php?mid=<?php echo $_GET['mid']; ?>'}; Facebook.streamPublish('',attachment,null,friends[i],comment,callback); Doing the above gives me a Facebook undefined, what should I do to remedy this? Do I need to set a special permission in order to do this to the sender of this message? 回答1: You do need the stream.publish permission in order to use the stream.publish method

How to play facebook embed video in phonegap?

一笑奈何 提交于 2019-12-21 06:22:29
问题 I embedded a facebook video in my phonegap app where I've got two different problems and I'm able to fix just one of them . 1. first problem (fixed) - the facebook video was not being displayed in my app. So I could fix it doing something like this .fb-video { width: 100% !important; height:100%!important; } .fb-video span { width: 100% !important; height:4650px!important; } .fb-video iframe[style] { width: 100% !important; height:100%!important; } By the way I'm not sure if it's been doing

Using Facebook's API to post a video using the feed dialog fails

流过昼夜 提交于 2019-12-21 06:06:17
问题 I'm trying to post a video to a user's timeline using Facebook's feed dialog. When I use the javascript SDK with: FB.ui({ method:'feed', name: 'testing', link: 'http://www.facebook.com', picture: 'http://img.youtube.com/vi/1CE6W5BubQo/0.jpg', source: 'http://www.youtube.com/watch?v=1CE6W5BubQo' }); I get: And this is missing the thumbnail and video player. I tried adding type: 'video' to the parameters and I also tried replacing the source parameter with a direct link to the .swf file, but

Extend auth token without refreshing the page

霸气de小男生 提交于 2019-12-21 06:02:11
问题 Users want to use my facebook app for many hours without refreshing the browser. But token expires in 2 hours. Now I ask users to refresh the page but that's annoying. I don't want to ask offline access permissions because it will scare some users. The best solution will be somehow "relogin" and get new token without refreshing the page. Is it possible? 回答1: I would subscribe to the expiry trigger (I think this is authResponseChange), then automate another login check. It won't be a perfect

Requests Dialog only works with Canvas-View?

旧时模样 提交于 2019-12-21 05:16:17
问题 I've some page-tabs for a few fanpages and there I'd like to integrate the RequestDialog. But unfortunately it always tries to redirect the friend, that got a request, to the canvas page. Is there a way to send the user to the page-tab, where his friend initially started the request dialog? Thanks in advance, Jurik 回答1: Accepting a request will always go to the canvas page with the request_ids parameter added. See the "User Response" section of this doc: https://developers.facebook.com/docs

Facebook JavaScript SDK: FB.ui opens a popup window

霸气de小男生 提交于 2019-12-21 03:45:34
问题 I am trying to show a 'Post to Your Wall' feed dialog with the following code in a facebook iframe app: <div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js"> </script> <script> FB.init({ appId:'249725835046216', cookie:true, status:true, xfbml:true }); FB.ui({ method: 'feed', message: 'Facebook for Websites is super-cool', name: 'Facebook Dialogs', link: 'http://developers.facebook.com/docs/reference/dialogs/', picture: 'http://fbrell.com/f8.jpg', caption:

facebook login on localhost without https

雨燕双飞 提交于 2019-12-21 03:39:30
问题 I know there are about a hundred questions of this on SO, but none of them are maybe up-to-date with what seems to be happening on facebook platform right now. It seems the switch that turns off SSL is disabled: It may be hard to see, but the "Enforce HTTPS" toggle is greyed out and can't be toggled. I'm all for enforcing HTTPS in production, but is everyone who is building against facebook API really setting up an SSL certificate on their local server just for this? 回答1: You will still be

Facebook login JS - FB.Event.subscribe('auth.login') triggers without login button click

守給你的承諾、 提交于 2019-12-20 19:57:34
问题 really need your help with log-in-with-facebook feature I'm trying to implement on my website. Basically, I'm trying to achieve the following: if user has acknowledged the app before and clicks FB Log in button on my website, they get logged into the website (with website's user account associated with the Facebook user ID) if user has not acknowledged the app before, on FB log in (and subscription to app) they get redirected to website's registration page. Here the form is pre-filled with

Facebook Authentication Implementation

一笑奈何 提交于 2019-12-20 14:35:13
问题 I'm working on a project which will use facebook authentication completely (no custom authentication implementation exists). Project uses PHP for server-side scripting. I looked around for implementing fast and secure authentication mechanism but i cannot find any detailed description about this subject. Facebook's documents are weak and does only provide basic information. Which authentication method would be appropriate? There's a Javascript SDK and PHP SDK. As i understand, i have to use