且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何正确发布Open Graph操作?

更新时间:2023-01-01 23:17:54

致命错误:未捕获的OAuthException:(#3502)URL http://apps.facebook.com/中的对象APP_URL_NAME/具有og:类型的网站".属性"shoe"需要使用og:type"APP_URL_NAME:OBJECT_NAME"对象.抛出_PATH_TO_FB_LIBRARY _

Fatal error: Uncaught OAuthException: (#3502) Object at URL http://apps.facebook.com/APP_URL_NAME/ has og:type of 'website'. The property 'shoe' requires an object of og:type 'APP_URL_NAME:OBJECT_NAME'. thrown in _PATH_TO_FB_LIBRARY_

听起来您正在尝试将应用程序在Facebook上的画布页面URL用作要在其上发布操作的Open Graph对象.

That sounds like you are trying to use your app’s canvas page URL on Facebook as the Open Graph object you are trying to publish an action upon.

您无法做到–它必须是一个独立"网页,并且必须在meta标记中将其og:type设置为"APP_URL_NAME:OBJECT_NAME".

You can’t do that – it has to be a "stand-alone" web page, and it has to have it’s og:type set up in the meta tags as 'APP_URL_NAME:OBJECT_NAME'.