草庐IT

facebook-messages

全部标签

javascript - Facebook PHP SDK v4.0 FacebookJavaScriptLoginHelper 返回状态 NULL

我在我的本地主机上工作,使用FBPHPSDK4.0。我能够使用JSSDK完成登录,现在我试图通过PHPSDK访问一些信息。在每个页面上我添加这个js和php代码。JavaSciptwindow.fbAsyncInit=function(){FB.init({appId:'app-id',xfbml:true,version:'v2.1',status:true,cookie:true});FB.getLoginStatus(function(response){statusChangeCallback(response);});};(function(d,s,id){varjs,fjs

javascript - 如何将 facebook 组(不是常规页面)嵌入到 wordpress 的 iframe 中?

好的,这里有关于嵌入facebook页面的类似问题,这可以通过使用facebook'sofficialplugin轻松完成。但是,当您输入组的URL而不是页面时,它会出现一个错误,指出它是一个无效的URL。我基本上想做与此插件相同的事情,但我希望能够在我的网站上共享群组,也可能共享事件,而不是页面。希望facebook将此功能添加到他们的插件中,但在那之前我需要你们的帮助:)我相信这一定是可能的 最佳答案 为此有几个很棒的插件。一个叫做“FeedThemSocial”,它可以满足您的所有要求。有免费和付费版本,它们支持FB群组。您可

php - 用于不返回预期数据的视频的 Facebook 图形 API

https://graph.facebook.com/v2.6/{video_id}/video_insights?metric=total_video_views&access_token={token}我正在使用上面的链接在PHP中获取视频对象的JSON详细信息,但是我无法获得所需的数据w.r.t.提供的指标所需数据:total_video_views这是公制的FB:https://developers.facebook.com/docs/graph-api/reference/video/video_insights/当我使用?metric=total_video_viewsFB

php - 创建资源 : [message] fopen(): Unable to find the wrapper "https" on Ubuntu using Symfony 时出错

我正在尝试在Ubuntu17.04机器上安装Symfony3,但出现错误:[GuzzleHttp\Ring\Exception\RingException]Errorcreatingresource:[message]fopen():Unabletofindthewrapper"https"-didyouforgettoenableitwhenyouconfiguredPHP?[file]phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php[line]406[messag

php - Laravel - Passport API 集成 |错误 : {"message" :"Unauthenticated."}

我是Laravel的新手。我刚刚开始使用thisreferencelink学习Laravel护照集成.下面是我的路由文件api.phpRoute::post('login','API\PassportController@login');//thisisworkingfineRoute::post('register','API\PassportController@register');//thisisworkingfineRoute::group(['middleware'=>'auth:api'],function(){Route::post('get-details','API

PHP fatal error : Uncaught exception 'Exception' with message

我有一个PHP脚本连接到一个api并将信息发布到他们的系统,但是当它尝试连接时它抛出一个fatalerror:Fatalerror:Uncaughtexception'Exception'withmessage'Problemwith'http://apitestserver.co.uk:9000/Service.svc/Items'in/var/www/html/e/connect_test.php:17Stacktrace:#0/var/www/html/e/connect_test.php(39):do_http_request('http://apitest....','hel

php - 使用 PHP 和 Cron 更新 Facebook 状态

是否可以使用facebookphpapi和crontab来创建状态更新?Crontab将运行将状态更新发送到facebook的php代码。我的问题是登录部分[$facebook->require_login();]。crontab无法登录,能否将登录信息(用户名和密码)也发送到facebook?我的示例代码:$facebook=newFacebook($api_key,$secret);$user=$facebook->require_login();$output="mystatus";$result=$facebook->api_client->users_setStatus($o

php - PHP 中的 Facebook api 墙贴

我试过下面的代码不工作$attachment=array('message'=>'somemeesgae','name'=>'ThisismydemoFacebookapplication!','caption'=>"CaptionofthePost",'link'=>'http://mylink.com','description'=>'thisisadescription','picture'=>'http://mysite.com/pic.gif','actions'=>array(array('name'=>'GetSearch','link'=>'http://www.goo

php - 我的 Facebook 登录对话框在 IE 中没有关闭

我有一个奇怪的问题。在弹出对话框中输入我的Facebook登录详细信息后,它返回一个空白页面并且弹出窗口永远不会关闭。这只发生在IE中。在Chrome、FF甚至Safari中它都能完美运行。你能帮我解决这个问题吗?我想知道到底是什么问题。 最佳答案 我遇到了和你描述的一样的问题。我通过在FB.init中提供带有channel.html文件的channelUrl解决了这个问题,如下所示:FB.init({appId:'[yourappid]',channelUrl:'http://[yourwebsite]/channel.html'

php - 接受后无法删除 Facebook 中的申请邀请

我浏览了这个网站并查看了Facebook文档,但我似乎无法在friend接受邀请后删除邀请。所以,会发生什么:1.史蒂夫邀请约翰参加一场比赛。2.John收到该邀请并单击接受。3.John被带入游戏,但他的facebook页面上的邀请信息并没有被删除。Facebook文档建议我在发布到https://graph.facebook.com/[request_id]?access_token=xxxx时添加“method=delete”但这会返回我"{"error":{"type":"OAuthException","message":"(#2)Invalidparameter:Unkno