facebook-opengraph

Facebook Open Graph No Image First Time

好久不见. 提交于 2019-12-17 18:49:06
问题 I'm trying to configure a share/send button with a link. I've properly configured the open graph image tags on a page, but when opening the share/send dialog for the first time, the image doesn't show. Without refreshing the page, opening the share/send dialog for the second time, the image will show. The URL of the page and the images are all in HTTP (instead of HTTPS). I can't simply use the URL-Linting tool as the page will have a unique URL. The website is about sending virtual flowers to

Share HTML5 player on Facebook wall

只愿长相守 提交于 2019-12-17 18:27:30
问题 I have a player both in Flash as well the same in HTML5 version. I am calling a page through iframe which detects the browser and device and loads the player accordingly and it is working fine. Before the HTML5 version of the player I was able to share the Flash player to Facebook. But how do we make it workable with HTML5 player? If I share the iframe page it doesn't work nor the video doesn't play. I find that youtube is able to do the same what we require, please advice and help how to

Changing the value of OG:IMAGE with jQuery click

不羁的心 提交于 2019-12-17 16:58:14
问题 I just build up a image portfolio with a single HTML page where all the pictures are dynamically loaded. Everything works great so far, except for the facebook META OG:IMAGE. Since the page loads just once, I can assign the OG:IMAGE URL once... But I really would like to have each picture with its own OG:IMAGE, since this is a photo album. The pics are loaded by clicking on a --li class="open-pic"-- tag. I would like to change the OG:IMAGE value everytime I click on a --li class="open-pic"--

Do services other than Facebook use Open Graph?

断了今生、忘了曾经 提交于 2019-12-17 16:27:08
问题 Will other services other than Facebook use Open Graph tags when scraping the page for sharing information? Meaning, if I have an AddThis button (for example) on a page, which allows sharing to Facebook, Google+, and Pinterest etc., will any of the other services also honor those meta tags? Or is generally something we do specifically for Facebook? 回答1: The answer appears to be yes... sort of. Since Open Graph is an open protocol of sorts, it's not meant to be Facebook specific. And it

Using Open Graph API, can I see when users Add To Playlist or Star tracks in Spotify?

可紊 提交于 2019-12-17 15:45:15
问题 How would I access when a user (and a friend of a user) adds a song to a playlist, or stars a song in Spotify, Rdio etc? 回答1: http://graph.facebook.com/me/music.listens http://graph.facebook.com/me/music.playlists You have to get the user_actions.music permission before you can read those. 回答2: The correct permissions is user_actions:music, not a dot. user_actions:music user_actions:video user_actions:news http://graph.facebook.com/me/music.listens http://graph.facebook.com/me/music.playlists

OAuth Error: This IP can't make requests for that application

試著忘記壹切 提交于 2019-12-17 10:58:54
问题 I just started to get random This IP can't make requests for that application. errors with my app. My server's IP address is on my whitelist from my app's settings, and it was working perfectly, but I randomly started to get this error. I've checked my server's IP (even though I already know it's static), I've removed all the entries in the whitelist, but none seem to work. Weird enough, I can test the exact same code from my home and it works! What could be the cause of the problem? This

Get Facebook meta tags with PHP

落花浮王杯 提交于 2019-12-17 06:51:48
问题 I'm trying to get Facebook's meta tags from my HTML. I'm using simple html dom to get all html data from the site. I've tried with preg_replace, but without luck. I want for example to get the content of this fb meta tag: <meta content="IMAGE URL" property="og:image" /> Hope someone can help! :-) 回答1: I Was going to suggest to use get_meta_tags() but it seems to not work (for me) :s <?php $tags = get_meta_tags('http://www.example.com/'); echo $tags['og:image']; ?> But I would rather suggest

Is there an API to force Facebook to scrape a page again?

谁都会走 提交于 2019-12-17 04:14:59
问题 I'm aware you can force update a page's cache by entering the URL on Facebook's debugger tool while been logged in as admin for that app/page: https://developers.facebook.com/tools/debug But what I need is a way to automatically call an API endpoint or something from our internal app whenever somebody from our Sales department updates the main image of one of our pages . It is not an option to ask thousands of sales people to login as an admin and manually update a page's cache whenever they

Showing Thumbnail for link in WhatsApp || og:image meta-tag doesn't work

杀马特。学长 韩版系。学妹 提交于 2019-12-17 03:47:29
问题 Tried to follow this question : Provide a picture for whatsapp link sharing I have created a simple HTML webpage with the basic Facebook metatags: <!--FACEBOOK--> <meta property="og:title" content="San Roque 2014 Pollos" /> <meta property="og:description" content="Programa de fiestas /> <meta property="og:image" content="http://pollosweb.wesped.es/programa_pollos/play.png" /> The Facebook linter validate correctly and in Facebook it shows perfect, but when I try to share by WhatsApp the image

Convert or Execute an CURL Request for Rails Application

偶尔善良 提交于 2019-12-14 03:38:01
问题 How can I execute the following request in my Ruby on Rails controllers? curl -X POST \ -F "id={object-url OR object-id}" \ -F "scrape=true" \ -F "access_token={your access token}" \ "https://graph.facebook.com" 回答1: Use the rest-client gem.You can make HTTP request from your controller using this. Their github page has examples explaining how to make reuqest along with paramters. A simple get request may look like this: RestClient.get '"https://graph.facebook.com', {params: {'scrape'=> true,