WordPress Post featured image URL in the header

I want to add the featured image URL of a post to the header. When a Facebook user shares a WordPress page, this code in the header: The rel=”image_src” attribute is what facebook is searching for. <link rel=”image_src” href=”https://wordpress.stackexchange.com/questions/70215/FEATUREDIMAGEURL”> Will return a specific image for the share. However, I cannot figure out how to add … Read more

Prevent Javascript Facebook SDK Conflicts in plugin

I have plugin that uses Facebook’s Javascript SDK to display a Facebook’s Customer Chat Plugin. I’ve been getting feedback that it doesn’t work well with other WordPress plugins that load the Facebook Javascript SDK. This is the code Facebook provides to use for my Facebook SDK plugin: Customer Chat for Facebook <script> window.fbAsyncInit = function() … Read more

React-Native: Application has not been registered error

I am currently going through the React-Native tutorials. I began with the Getting Started tutorial, where I made a new react native project and successfully managed to run the project on my device. I then started the Props tutorial, I copied the code snippet and tried to run the project again and had the following … Read more

What does a Ajax call response like ‘for (;;); { json data }’ mean? [duplicate]

This question already has answers here: Closed 9 years ago. Possible Duplicate: Why do people put code like “throw 1; <dont be evil>” and “for(;;);” in front of json responses? I found this kind of syntax being used on Facebook for Ajax calls. I’m confused on the for (;;); part in the beginning of response. … Read more

How to segue programmatically in iOS using Swift

I’m creating an app that uses the Facebook SDK to authenticate users. I’m trying to consolidate the facebook logic in a separate class. Here is the code (stripped for simplicity): import Foundation class FBManager { class func fbSessionStateChane(fbSession:FBSession!, fbSessionState:FBSessionState, error:NSError?){ //… handling all session states FBRequestConnection.startForMeWithCompletionHandler { (conn: FBRequestConnection!, result: AnyObject!, error: NSError!) -> Void … Read more

Conditionally loading Facebook PHP SDK in shortcode

Since 3.3 we can enqueue scripts conditionally right in our shortcode functions, but when I tried to do this with some PHP class (uses session_start() in the __construct() function) as you can guess it gives me the headers already sent error. The problem is (this is using the Facebook PHP SDK in conjunction with the … Read more