草庐IT

facebook-permissions

全部标签

Facebook Open Graph Count使用PHP SDK共享

从Facebook文档中,我可以获取网页的股票计数,拨打以下URLhttps://graph.facebook.com/?id=http://www.google.it,返回的数据如下:{"share":{"comment_count":0,"share_count":636734},"og_object":{"id":"389545309239","title":"Google","type":"website","updated_time":"2017-06-08T10:05:50+0000"},"id":"http://www.google.it"}我想使用以下代码使用PHPSDK获取相

windows - 如何解决在 Windows 上的 Ubuntu 上更新 polymer-cli 由于 .git : Permission denied 而失败

我需要一个解决方法来更新Windows10上的Ubuntushell上的polymer-cli,但由于“...git:权限被拒绝”而失败。我正在关注this在Windows10上运行管理员Ubuntushell。一切都很好,直到$sudonpminstall-gpolymer-cli产生:npmERR!Commandfailed:/usr/bin/gitclone--depth=1-q-bmastergit://github.com/polymerelements/test-fixture.git/home//.npm/_cacache/tmp/git-clone-fe296ee9np

node.js - Windows Node : always get either "Error: ENOENT: no such file or directory, open" or "Error: EACCES: permission denied, open"

这是我的代码:varfs=require('fs');varutil=require('util');varlogFile=fs.createWriteStream('C:/text.txt',{flags:'a'});//Or'w'totruncatethefileeverytimetheprocessstarts.varlogStdout=process.stdout;console.log=function(){logFile.write(util.format.apply(null,arguments)+'\n');logStdout.write(util.format.app

c# - Facebook web 应用程序扩展权限第二步不显示

更新2这篇文章变老了,但仍然相关。下面是我解决它的方法。我标记了其他人的答案,因为我认为它更好地回答了问题。我在accountcontroller中调用了一个类似的方法(我即将重构:))。该字符串应该是一个列表...我想您明白了。//////Usethismethodwhenanactionfailsduetolackofpriviligies.Itwillredirectusertofacebookwithprovidedpermissionrequest.///Refactortohandlelistofrequest.//////privatestaticvoidAddAddit

c# - DotNetOpenAuth 和 Facebook

我正在尝试将DotNetOpenAuth用于某些Web单点登录功能。我得到了适用于Google和Yahoo的示例,但在使用Facebook时遇到了困难。我正在使用CTP(4.0.0.11165)并遵循thisSOquestion中的示例.但是,我在该行收到运行时错误:IAuthorizationStateauthorization=client.ProcessUserAuthorization();错误是:Failedtoobtainaccesstoken.AuthorizationServerreportsreason:(unknown)有什么想法吗? 最

c# - Facebook 登录抛出“应用程序配置不允许给定的 URL。: One or more of the given URLs is not allowed

我知道这个问题已经被问过很多次了,但是尽管我尝试了几个url地址,它似乎仍然会抛出这个错误。我正在尝试像微软教程中那样通过asp.netmvc应用程序登录facebookhere.当我在本地主机上检查它时它工作正常(Facebook中的站点URL设置为:http://localhost:55797/但是当我将应用程序上传到服务器后尝试检查它时,它给了我这个错误:GivenURLisnotallowedbytheApplicationconfiguration.:OneormoreofthegivenURLsisnotallowedbytheApp'ssettings.Itmustmat

创建 Facebook AppSecret_Proof HMACSHA256 需要 C# 帮助

Facebook要求我创建一个appsecret_proof:https://developers.facebook.com/docs/graph-api/securing-requests我使用以下代码完成了此操作:publicstringFaceBookSecret(stringcontent,stringkey){varencoding=newSystem.Text.ASCIIEncoding();byte[]keyByte=encoding.GetBytes(key);byte[]messageBytes=encoding.GetBytes(content);using(var

c# - 在 "CREATE TABLE permission denied in database"ASP.NET - MVC4 中列出表结果

我正在使用ASP.NETMVC4-c#连接到实时数据库并列出结果,但是当我查看页面时它返回以下错误:CREATETABLEpermissiondeniedindatabase'DatabaseName'.Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebrequest.Pleasereviewthestacktraceformoreinformationabouttheerrorandwhereitoriginatedinthecode.ExceptionDetails:System.Dat

c# - Facebook Connect 与使用 ASP.NET Membership Provider 的站点集成

是否有任何最佳实践或示例说明如何使用成员资格提供程序(或类似的东西)将Facebook连接与现有ASP.NET应用程序最佳集成。我确信我可以做一些事情,但是,如果有一些关于此的信息和最佳实践来减轻任何安全问题,那就太好了。目前我可以让用户“连接”并获取他们的信息,但是,我希望尽可能安全地处理它们,并尽可能与现有用户类似。特别是,我希望他们在“用户”表中有一个条目。对于与ASP.NETMVC相关的任何信息,这将非常有用。我迄今为止发现的一些有用的链接:http://facebooktoolkit.codeplex.com/Thread/View.aspx?ThreadId=45825Fa

c# - 从代码发送电子邮件时出现“5.7.1 Client does not have permission”错误

所以我有一个非常基本的程序试图发送电子邮件,但我一直收到Mailboxunavailable.Theserverresponsewas:5.7.1Clientdoesnothavepermissionstosendasthissender这是我的程序staticvoidMain(string[]args){SmtpClientclient=newSmtpClient("Server",25);client.UseDefaultCredentials=false;client.DeliveryMethod=SmtpDeliveryMethod.Network;client.Credent