首页 \ 问答 \ Facebook墙贴在需要访问令牌密钥后无法正常工作(Facebook wall post not working after access token key required)

Facebook墙贴在需要访问令牌密钥后无法正常工作(Facebook wall post not working after access token key required)

我使用jquery脚本从Facebook获取我的帖子,然后显示在我的网站上。 这是我使用的代码:

http://www.neosmart.de/social-media/facebook-wall

Facebook现在需要访问令牌才能访问您的Feed。 所以我在facebook登录下创建了一个应用程序,然后抓住了访问令牌。 一旦我通过访问令牌,它就会显示我网站上墙上的帖子。 然而,第二次我退出Facebook我的网站上的帖子不再显示,而是显示此错误:

Error validating access token: The session is invalid because the user logged out.

所以我的问题是从我的Facebook帐户获取访问令牌的正确步骤是什么,如果我登录到Facebook,我可以用来查看我的Facebook提要?

编辑:

这是一步一步解释如何通过离线访问授予我自己的应用程序权限并获取访问令牌。 一旦我按照这些步骤操作,我的Feed现在可以正常工作。

http://itslennysfault.com/get-facebook-access-token-for-graph-api


Im using a jquery script that grabs my posts from facebook and then displays on my site. Here is the code Im using:

http://www.neosmart.de/social-media/facebook-wall

Facebook now requires an access token in order to access your feed. So I created an app under my facebook login and then grabbed the access token. Once I pass the access token it shows the posts on my wall on my site. However the second I log out of Facebook the posts on my site no longer show, instead it shows this error:

Error validating access token: The session is invalid because the user logged out.

So my question is what are the proper steps to get an access token from my facebook account that I can use to view my facebook feed if Im logged into facebook or not?

EDIT:

This is a step by step explanation of what to do to grant myself permission to my own app with offline access and get the access token. Once I followed these steps my feed now works as it should.

http://itslennysfault.com/get-facebook-access-token-for-graph-api


原文:https://stackoverflow.com/questions/6697936
更新时间:2024-05-05 18:05

最满意答案

我不确定你想要做什么,但看起来你正在从图像到画布绘制每个像素。

如果确实如此,我建议您立刻绘制整个图像。

如果没有,我真的需要一个更详细的问题,或许对你的代码中的数学有更多的解释。

哦,不要忘记分号。


I´m unsure of what you´re trying to do but it looks like you´re drawing each pixel from the image to the canvas.

If that is indeed the case I suggest you just draw the whole image at once.

If not, I would really need a more elaborated question perhaps with more explanations on the math in your code.

Oh yes don´t forget semicolons.

相关问答

更多
  • 只需在paint事件开始时使用背景颜色填充Canvas 。 public void paintControl(PaintEvent event) { GC gc = event.gc; gc.setBackground(... background color ...); Rectangle fillRect = getClientArea(); gc.fillRectangle(fillRect); ... continue drawing } Just fill the ...
  • 要实际调整画布大小(如有更多像素 ),您需要设置宽度/高度属性。 jQuerys width()/height()设置css值。 导致拉伸的画布元素由与之前相同的像素数组成。 而是使用: $('#canvas').prop({ width: 400, // the 400 is just arbitrary height: 400 }); 或者,根据Alnitaks评论,您当然可以直接分配值: canvas.width = 400; canvas.height = 400; To actuall ...
  • 当您从元素获取鼠标坐标时,就DOM而言,它们与元素的高度和宽度有关。 它们不会根据您如何缩放画布上下文来改变。 为了获得光标下方画布的坐标,必须对它们进行变换以匹配画布的当前变换。 // mouse event coordinates var mouseX; var mouseY; // current canvas transforms var originX; var originY; var scale; // adjust mouse coordinates with canva ...
  • 看到我不能编码整个事情但这里有一个链接,可能有助于仔细检查它。 在画布上手机上画画 如果有任何混淆,请告诉我 See i Cant code the entire thing But here's a link that might help Go through it carefully. Drawing on canvas windows phone Let me know if any confusion
  • 像迈克所说,最好的解决方案是重绘它。 放大css是一种解决方案,但质量却有很大的损失。 Like Mike said, the best solution is to redraw it. Zooming in with css is a solution, but there's a big loss in quality.
  • 好吧,我想清楚是什么问题,这是drawRect函数中的错误。 drawRect函数需要更改为: canvas.drawRect(0, 0, ((float) mProgress/maxProgress) * getWidth(), getMeasureHeight(), mPaint); 因为mProgress是一个整数除以整数返回零,这就是问题所在。 Ok i figured out what was the problem, it was the mistake in drawRect functio ...
  • 如果您需要使用其他画布,则必须分配HDC,例如 var WindowHandle:HWND; ScreenCanvas,BufferCanvas: TCanvas; r,r2: TRect; ScreenDC,BufferDC :HDC; BufferBitmap : HBITMAP; begin WindowHandle := 0; ScreenCanvas := TCanvas.Create; BufferCanvas := TCanvas.Create; Scre ...
  • 正如人们所指出的那样,如果CalculateMyPixel()价格昂贵,那么称为150,000(HVGA)或384,00倍(WVGA)只会让你失望。 最重要的是,每次有更新时,尝试通过canvas.drawPoint()将UI绘制为单个像素,这是执行此操作的最低效方法。 如果您要绘制单个像素,您几乎肯定想要某种包含像素的离屏位图,您可以使用简单的Canvas.drawBitmap()绘制。 然后,您可以决定管理该位图的最佳方法。 最简单的方法是只创建一个所需大小的Bitmap对象,并使用那里的API来填充它 ...
  • 我不确定你想要做什么,但看起来你正在从图像到画布绘制每个像素。 如果确实如此,我建议您立刻绘制整个图像。 如果没有,我真的需要一个更详细的问题,或许对你的代码中的数学有更多的解释。 哦,不要忘记分号。 I´m unsure of what you´re trying to do but it looks like you´re drawing each pixel from the image to the canvas. If that is indeed the case I suggest you j ...
  • 您可能想看看LinearGradient填充。 这是描述它是如何工作的。 它不是用纯色填充形状,而是用渐变图案填充它们。 然后,它只需要组合各种尺寸和图案的多种形状。 如果你想得到完全相同的颜色,你可能需要读取它们的rgb值并像我一样定义它们: Color.rgb(225, 229, 111) 这是我的尝试。 它并不完美,但它有点类似于你想要达到的目标。 摆弄颜色和大小,你将获得所需的结果,而不是给出绝对值,你可以参数化一些东西,例如阴影的大小,或正方形和内圆之间的空间,等等。 public class ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。