Tag: Query

A proper way to prepare IN Query in WordPress

A proper way to prepare IN Query in WordPress

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters <?php global $wpdb; if ( is_array( 

FQL query for all your facebook photos (Uploaded + Tagged)

FQL query for all your facebook photos (Uploaded + Tagged)

In facebook graph api there isn’t any endpoint where you can get all your photos but this can done using very easy FQL query. SELECT pid, src, caption from photo where owner = me() or pid IN (SELECT pid FROM photo_tag WHERE subject = me())