<script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key: mykey
authorize: true
</script>
<script type="text/javascript">
function onLinkedInAuth() {
IN.API.Profile("me")
.result( function(me) {
var id = me.values[0].id;
// AJAX call to pass back id to your server
});
}
</script>
El error: "The text content of element script was not in the required format: Expected space, tab, newline, or slash but found a instead."
Lo he intentado usando CDATA de la siguiente manera:
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
//<![CDATA[
api_key: mykey
authorize: true
//]]>
</script>
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
/* <![CDATA[ */
api_key: mykey
authorize: true
/* ]]> */
</script>
Pero continúa dándome el mismo error de validación y en la consola me sale esto: "script tag contents must be key/value pairs separated by a colon. Source: TypeError: Cannot read property '1' of null"
Ya no se qué probar, alguna opción?
Gracias.