Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Trying to do this as well but it does not appear so. Example: a video I have on a Page with ID "1015030122022040" has a thumbnail url of:</p> <p><code>http://vthumb.ak.fbcdn.net/hvthumb-ak-ash2/51388_10150301225830401_10150301220220401_62962_1470_t.jpg</code></p> <p>While another video with ID: 10150361184550401 has a thumbnail url of: <code>http://vthumb.ak.fbcdn.net/hvthumb-ak-snc4/162098_10150361242815401_10150361184550401_35242_2053_t.jpg</code></p> <p>I looked through others and found no obvious pattern. You can however do an FQL to return the array of videos by uid. </p> <p>Using some code <a href="http://thinkdiff.net/facebook/php-sdk-graph-api-base-facebook-connect-tutorial/" rel="nofollow">from a tutorial</a>, I edited the "sql query example" in Step Three to this:</p> <pre class="lang-php prettyprint-override"><code>try { //get user id $uid = $facebook-&gt;getUser(); //or you can use $uid = $fbme['id']; $fql = "SELECT vid, owner, title, description, thumbnail_link, embed_html, updated_time, created_time FROM video WHERE owner=" . $uid; $param = array( 'method' =&gt; 'fql.query', 'query' =&gt; $fql, 'callback' =&gt; '' ); $fqlResult = $facebook-&gt;api($param); } catch(Exception $o){ d($o); } </code></pre> <p>Then from his example was able to the view the arrays <code>&lt;?php d($fqlResult); ?&gt;</code></p> <p>And grabbed my most recent video thumbnail thusly:</p> <pre class="lang-php prettyprint-override"><code>&lt;img src="&lt;?php echo $fqlResult[0][thumbnail_link]; ?&gt;" /&gt; </code></pre>
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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