Preview IFrame URL of a given Dropbox File Stat - dropbox-api

The website provides IFrame preview
The File API provides metadata
But I don't know how to get from the API the _subject_uid and w set in IFrame preview URL to embed the Preview in my own page.
The IFrame is calling :
https://dl-web.dropbox.com/get_htmlified/
There is also a sharing feature using a minifed URL with makeUrl() but I can't get IFrame URL

Related

What restrictions are there on the Facebook Social Plugin integration?

I'm using the Page plugin feature in order to generate a rendered facebook events feed for a XAML application I'm working on.
https://developers.facebook.com/docs/plugins/page-plugin
On the page, it gives you the option to put in a facebook link, and it will then render a timeline or events page in which you can grab HTML code from. I am taking the Iframe code and harvesting the URL, then having it render within a webview in XAML. The issue I am running into is that facebook won't render the page I need. This prevents me from getting the URL out of the Iframe.
Does anyone know what sort of restrictions facebook places on rendering page plugins?

Why Facebook Pixel doesn't track URLs when embedded in iframe?

I've noticed that when FB pixel is embedded into a standard web page, it works correctly.
This is the call it does:
https://www.facebook.com/tr/?id=PIXEL_ID&ev=PageView&
dl=https%3A%2F%2Fautotarget.co%2Fauto%2Faudi%2Fa6%2Fpr%2Femilia-romagna%2F-8-%2F48%2F&rl=&if=false&ts=1464110706891&v=2.5.0&pv=visible
And i see the url on the Audicence panel on Business Manager.
The problem is when the FB pixel is embedded on iframes. It seems it doesn't track the iframe URL.
This is the call it does:
https://www.facebook.com/tr/?id=PIXEL_ID&ev=PageView&
dl=https%3A%2F%2Fautotarget.co%2Fauto%2Faudi%2Fa6%2Fpr%2Femilia-romagna%2F-8-%2F48%2Fthankyou-call%2F&
rl=https%3A%2F%2Fautotarget.co%2Fauto%2Faudi%2Fa6%2Fpr%2Femilia-romagna%2F-8-%2F48%2F&
if=true&ts=1464107424477&v=2.5.0&pv=visible
In this case dl parameter is the right URL, rl parameter is the URL of the page embedding the iframe.
Could you please help us?

URL Scheme facebook page post

How do I use the url scheme to facebook from a link in the mobile browser open the facebook app on a specific post of a page?
In href tried using:
fb://page/"id" - opens the page correctly
tried using fb://post/"id_post" - does not work, just open the facebook app

Facebook Canvas App not loading my URL

I got a page at www.somedomain.com/facebook/index.html http://www.somedomain.com/facebook/index.html. I'd like to serve that via the apps...so via the canvas but when I point the canvas url to this directory (www.somedomain.com/facebook/) I get a page not found error on the apps page. However, hitting www.somedomain.com/facebook/ http://www.somedomain.com/facebook/ does serve index.html in a browser. Any clues as to what's going on here? Might add...there is no https page setup as yet. This is just a static HTML page that I'd like to serve via apps.
Thanks!
In order to load your page inside the canvas iframe, Facebook is issuing an HTTP POST request for the URL http://www.somedomain.com/facebook/index.html.
My guess is your server only serves pages requested using GET.

Force facebook app to use page tab iframe

I have an iframe facebook app currently running on a page tab. Unfortunately, when people share some of the links within the page, the resulting shared links send users to the original content on the server and not to the facebook page tab. How can I force users who arrive directly at the URL into the page tab iframe?
I found the solution: basically you can use the facebook javascript api to detect if you are within the iframe. If not, redirect. Here is the code:
// Test if canvas page loaded
var obj = FB.Canvas.getPageInfo();
// Now redirect to page if not
if(obj.clientHeight == 0) window.location = 'http://facebook/page/url/';