POST API (not form post) to create a JSFiddle - php

I'm working on some demos where we need to generate some code dynamically for each user. We would like to POST a JSFiddle API end point to create a new fiddle programatically from our back end. However, reading the documentation, it seems that the only POST function supported is designed for forms, not APIs, and loads a page with the jsFiddle loaded.
Is there some way I can post to a jsFiddle API and get back a URL to the jsFiddle I can direct users to?

You may have already found this:
Display a Fiddle from POST

Related

Posting with Wordpress API REST

I'm trying to automate posting entries to a blog every time a specific action happens on my website.
I've been looking at the Wordpress documentation but I've only seen that I can put as the structure of the post. I would be interested in creating entries with text and images. Would it be possible to do this?
The text and images would be taken from the web page.
I'm using php with Laravel and the blog is in wordpress.
You can send a POST request to the "post" endpoint to POST a new post (no pun intended) (docs).
Although the content parameter is said to be an object in the docs, you can pass a HTML string to it like <h1>Some cool event happened</h1><p>See this picture</p><img src="https://some-path-to-picture.com/picture.png">
It seems you can even add images along with your content to be hosted on your wordpress site (see this Github question)

Get the complete html code from an album of facebook

I'm trying to get the html code from an album of facebook,once done that i want to extract the photo links,
but as we know all the photos are not loaded at once but as you scroll down.
When i use cURL it get only those links of the photos which are loaded at first.
Will there be a way to get the whole loaded html code through php?
Please bear with my english.
Thanks
EDIT: Well i was wanting to do the same on any page which have this kind of behavior not only on facebook. Thanks anyway
You will not be able to reliably fetch an album from Facebook via this method.
There are a small amount of photos sent with the original request and the rest are loaded via ajax. Using curl, there is no way that I am aware of to simulate the events that lead to said ajax load. You could call the original, and then subsequently call the other ajax endpoints but this method is likely to break the second fb changes anything.
As ceejayoz said, you should be using the fb api for this sort of thing.

Facebook Posts and Multiple Actions

Can you post multiple actions (I want to do two) with a wall post using the Facebook Graph API? If so what is the format that should be used for the actions string. I can't get this to work for the life of me.
This piece of documentation describes the parameter as a array of objects containing the name and link. I used json to do this however I can only successfully do one action link and not two.
I think you are talking about the custom app-pecified links displayed in the wall post. No, facebook allows only 1, and tha'ts how the structure of facebook wall post is.
there is written here http://fbdevwiki.com/wiki/FB.ui#method:_.27feed.27 that only one action link allowed

Google Code for Lead Conversion Page

I want to put Google Analytics code after people signup AJAX contact form.
If I put this in PHP file that gets submitted by AJAX post request. Do you think this will trigger this javascript codes when it runs?
In theory, you could create a results page that contains your Analytics code. On getting back results from Ajax dynamically create an iFrame that loads your results page. Set the iFrame's display attribute to none (e.g. style="display:none;").
This should have the results page show up in your Analytics stats without visitors to the site seeing it.
Edited to add: Google's official approach is documented here: https://support.google.com/analytics/bin/answer.py?hl=en&answer=1033068
It's less of a hack than the above :-)

Facebook-WordPress comment/feedback integration

Currently I have my Facebook profile automatically republish blog posts from a WordPress instance.
What I would like to be able to do, however, is to also have comments posted to either the blog of Facebook show up on the other in the appropriate location.
Is there a way to do this with the Facebook API?
There's a bunch of facebook-connect enabled WordPress plugins that might help you achieve this.
Here's a couple:
Sociable Facebook Connect
WP-Facebook-Connect
yoavf answer is good. A list including those plugins is maintained in Facebook's wiki:
http://wiki.developers.facebook.com/index.php/Facebook_Connect_Plugin_Directory
http://dentedreality.com.au/2008/12/implementing-facebook-connect-on-wordpress-in-reality has a novel approach that isn't on that list.
you need to go to the source of the blog, figure out how the comment form is posted (POST or GET) then you can use mock ajax documentation here. then inside the facebook app, you build a form similar to the one for the blog comment. make sure all the ids of the respective form elements are identical. then on your submit button you have a link like this.
<a clickrewriteid="dummy" clickrewriteform="comment_form"
clickrewriteurl="blog_form_action">Submit</a>
so dummy is the id of an element that will recieve any output.
comment_form is the id of the form that will be posted to the blog comment processor.
blog_form_action is the url in your blogs form action attribute.
if things work, the form comment_form will be posted to your blogs processor page so that the comment submitted from facebook will appear on the blog as well.
if the blog uses GET as its method, you just make sure that blog_form_action contains the query string
hope that helps!

Categories