Note that there are some explanatory texts on larger screens.

plurals
  1. POTell if Facebook page redirects
    primarykey
    data
    text
    <p>I've noticed that some facebook pages redirect. For example the NOFX band page (<a href="http://www.facebook.com/pages/NOFX/104336479603261" rel="nofollow noreferrer">http://www.facebook.com/pages/NOFX/104336479603261</a> only two links allowed so that one isn't set to link) redirects to their official page ( <a href="https://www.facebook.com/pages/NOFX-Official-Page/180985116576?rf=104336479603261" rel="nofollow noreferrer">https://www.facebook.com/pages/NOFX-Official-Page/180985116576?rf=104336479603261</a> ). I'm curious is if in the api we can tell that a page does this. <a href="https://graph.facebook.com/104336479603261" rel="nofollow noreferrer">https://graph.facebook.com/104336479603261</a> doesn't seem to show anything about the redirect but, perhaps there's another way to find it.</p> <p>Edit: Solutions that don't use the api are fine.</p> <p>Edit2: Solved here is the code I used if anyone is interested:</p> <p>Code mostly copied from <a href="https://stackoverflow.com/questions/427203/how-can-i-determine-if-a-url-redirects-in-php">How can I determine if a URL redirects in PHP?</a>.</p> <pre><code>function getURL($URL) { $ch = curl_init($URL); curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3'); curl_exec($ch); $code = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); curl_close($ch); return $code; } </code></pre> <p>Only thing really worth noting is that I had to add user agent so I don't get sent to an unsupported browser page.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload