facebook-opengraph

How to implement internationalization of OG-Tags?

随声附和 提交于 2019-11-29 01:00:01
问题 for an upcoming project we wanna translate our app to multiple languages. Having a look at Facebook's How-To: Open Graph Internationalization page, you get very detailed information on doing this. So, we implemented the tags correctly. When viewing the page as a english-speaking user, you get: <meta property="og:url" content="https://site.url" /> <meta property="og:title" content="English title" /> <meta property="og:description" content="English description" /> <meta property="og:locale"

Facebook publish_action permission not working for posting

我怕爱的太早我们不能终老 提交于 2019-11-28 18:39:58
Currently i can post news feed updates using objectids of some of my web pages to facebook users who have liked those pages. Now i'm trying to test the new open graph and custom actions to do the same; posting updates to users who made a specific action on my web site. But even though i get publish_actions permission with my app, and using my facebook account and some dummy test user accounts for my app (i know that until timeline is released, only devs and test users can use said permission), when i try to post i get this error message: "{"error":{"message":"(#200) Requires extended

Meaning of HTML prefix attribute (Open Graph Protocol)?

不问归期 提交于 2019-11-28 17:25:33
问题 I'm new to Facebook Open Graph Protocol. I have been trying to figure out what the meaning of the HTML prefix attribute is. The closest post on Stack Overflow I could find dealing with this subject is this post which was very helpful as it deals with what the differences are among the various possible syntaxes and which one to use. However the post does not say anything about what this prefix attribute is or what it does. AFAIK this is not a standard HTML attribute. I was able to find this

New og:image size for Facebook share?

拈花ヽ惹草 提交于 2019-11-28 17:23:33
Facebook recently changed image sizes for ads, and link posts. This affects also to meta property="og:image" . What is new optimal size for og:image at Facebook? The old version was square, now it doesn't fit anymore, because new size is rectangle. EDIT: The current best practices regarding Open Graph image sizes are officially outlined here: https://developers.facebook.com/docs/sharing/best-practices#images There was a post in the Facebook developers group today, where one of the FB guys uploaded a PDF containing their new rules about image sizes – since that seems to be available only if you

Playing back an embedded mp4 video in a Facebook like or share using Flash

主宰稳场 提交于 2019-11-28 17:15:11
I have an H.264-encoded mp4 file that I'm trying to get embedded into a Facebook post when the page that's serving it is Liked or Shared. My understanding is that I simply need to have the right Open Graph <meta> tags in place on the URL that's being liked/shared. However, I've tried several different sets of <meta> tags and the video is still not embedding when I paste the URL into my Status Update and Post it. It does embed the image from the og:image property, but clicking on the image just passes the user off to og:url . When I use the the Facebook Debugger tool , here's what it displays

How to implement iOS app link Facebook functionality in swift 3?

房东的猫 提交于 2019-11-28 14:39:45
I have tried many ways to achieve this but failed. I have to share info on facebook with a URL and when clicked on the url, it will redirect to my app's specific page. step# 1 let content: FBSDKShareLinkContent = FBSDKShareLinkContent() content.contentURL = NSURL(string: linkUrl) as URL! content.contentTitle = "Test" content.quote = "game" content.contentDescription = "This is a test game to test Fb share functionality" content.imageURL = NSURL(string: imgUrl) as URL! let dialog: FBSDKShareDialog = FBSDKShareDialog() dialog.mode = FBSDKShareDialogMode.native dialog.fromViewController = vc

Use Facebook app access_token to get age-restricted Page data through Graph API?

痴心易碎 提交于 2019-11-28 11:24:55
I have a Facebook application that users can add to their Facebook business Page(s) as a Page Tab app. It doesn't require any extended permissions for the user. I'm wondering if it's possible to use my app access_token and make calls against the Facebook Graph API to retrieve information about age-restricted Pages? No, if a page is restricted demographically (e.g. for alcohol) you MUST use a user access token from a user who meets those restrictions, or a Page access token for the page itself. An app access token will not work for such an API call If the owner of that access token can view the

Dynamic Facebook Open Graph tags possible?

ぃ、小莉子 提交于 2019-11-28 10:15:01
I'm dynamically changing my <meta property="og:image" content="#"> and <meta property="og:title" content="#"> tags using jQuery (below). When I view the code via 'inspect' in Chrome, the tags have successfully been changed. HTML: <meta property="og:title" content="#"> <meta property="og:image" content="#"> jQuery: $("meta[property='og:title']").attr("content", data.name); $("meta[property='og:image']").attr("content", data.thumbnail.url); But the Facebook debugger tool is still showing content="#" for each. I'm assuming this is because Facebook reads the source code, before Javascript has a

How to set priority order to Open Graph images for links that are inserted in comments. (Not sharing or wall posts.)

我是研究僧i 提交于 2019-11-28 09:52:25
When pasting a link to a page within a comment, not directly as a wall post, Facebook defaults to choosing a thumbnail image, without users being able to choose the relevant thumbnail. Is it possible to set or determine priority for og:image tags on pages with multiple og:image tags? There doesn't seem to be any logical way to determine why FB is choosing any specific image. The image they are choosing isn't the first, or last image, by code order or alphabetized by name, and doesn't really follow any reasonable reason that I can figure out. Does anyone know how to set which image is chosen on

Difficulty posting Actions to Timeline

試著忘記壹切 提交于 2019-11-28 09:25:10
问题 I've tried building the basis of our next app following Facebook's Open Graph Tutorial but for some reason I'm getting errors thrown at me regardless of how I try POSTing an action. I'll go as in-depth as I can here as I hope it'll be very useful for all developers getting to grips with the new Timeline. I've defined a battle action and a hero object using the default settings when setting up each. transcendgame is my namespace. $id is the userid of the Facebook user (I've tried using /me/,