<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ionic facebook plugin. in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074621#M59485</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Hi im building an apk that need Facebook i make it work the example (whit help of the forum :P) and i also make it work on my other apk but i need to fix some error because the framework that im using (ionic). first of all i need to add a button that login to Facebook.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;lt;button class="button widget uib_w_63 d-margins ion button-positive ion-social-facebook icon-only" data-uib="ionic/button" data-ver="0"&amp;gt;&amp;lt;/button&amp;gt;&amp;lt;button id="login_button" onclick="login();"&amp;gt;Login with facebook&amp;lt;/button&amp;gt; i try adding the&amp;nbsp;&amp;nbsp;id="login_button" onclick="login();"&amp;gt;Login with Facebook&amp;nbsp;to the ionic button but it does nothing. the other think is i have&amp;nbsp;document.addEventListener("deviceready", function()&amp;nbsp;from the Facebook plugin that din't work on ionic.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Captura de pantalla 2016-04-04 a las 12.22.10.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8716iED672D1420BFAB72/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Captura de pantalla 2016-04-04 a las 12.22.10.png" alt="Captura de pantalla 2016-04-04 a las 12.22.10.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2016 16:14:34 GMT</pubDate>
    <dc:creator>nicolas_r_</dc:creator>
    <dc:date>2016-04-04T16:14:34Z</dc:date>
    <item>
      <title>ionic facebook plugin.</title>
      <link>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074621#M59485</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Hi im building an apk that need Facebook i make it work the example (whit help of the forum :P) and i also make it work on my other apk but i need to fix some error because the framework that im using (ionic). first of all i need to add a button that login to Facebook.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;lt;button class="button widget uib_w_63 d-margins ion button-positive ion-social-facebook icon-only" data-uib="ionic/button" data-ver="0"&amp;gt;&amp;lt;/button&amp;gt;&amp;lt;button id="login_button" onclick="login();"&amp;gt;Login with facebook&amp;lt;/button&amp;gt; i try adding the&amp;nbsp;&amp;nbsp;id="login_button" onclick="login();"&amp;gt;Login with Facebook&amp;nbsp;to the ionic button but it does nothing. the other think is i have&amp;nbsp;document.addEventListener("deviceready", function()&amp;nbsp;from the Facebook plugin that din't work on ionic.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Captura de pantalla 2016-04-04 a las 12.22.10.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8716iED672D1420BFAB72/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Captura de pantalla 2016-04-04 a las 12.22.10.png" alt="Captura de pantalla 2016-04-04 a las 12.22.10.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 16:14:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074621#M59485</guid>
      <dc:creator>nicolas_r_</dc:creator>
      <dc:date>2016-04-04T16:14:34Z</dc:date>
    </item>
    <item>
      <title>Hi Nicolas,</title>
      <link>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074622#M59486</link>
      <description>&lt;P&gt;Hi Nicolas,&lt;/P&gt;

&lt;P&gt;Is not clear to me. The button is not responding to click and call login() function?&lt;/P&gt;

&lt;P&gt;Or it is going to login function and it fails to autenthicate agains FB? If this is the case, will be useful if you post some code.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Diego&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 17:06:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074622#M59486</guid>
      <dc:creator>Diego_Calp</dc:creator>
      <dc:date>2016-04-04T17:06:48Z</dc:date>
    </item>
    <item>
      <title>sorry about the bad english =</title>
      <link>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074623#M59487</link>
      <description>&lt;P&gt;sorry about the bad english =/. the "login whit Facebook" button works but i want the blue button of Facebook do the same. i copy &amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;id="login_button" onclick="login();" to the blue button but when i click on real device it does nothing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 18:10:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074623#M59487</guid>
      <dc:creator>nicolas_r_</dc:creator>
      <dc:date>2016-04-04T18:10:32Z</dc:date>
    </item>
    <item>
      <title>Ionic works different, you</title>
      <link>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074624#M59488</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Ionic works different, you need to set up a controller to manage the actions.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Why don't you use the automatic event handlers provided by XDK?&lt;/P&gt;

&lt;P&gt;I did this test:&lt;/P&gt;

&lt;P&gt;- Drop a button in a ionic xdk project and put b_login in the ID property.&lt;/P&gt;

&lt;P&gt;- Select at the designer right panel, INTERACTIVITY section, the new button, and choose Custom script on the Action drop down.&lt;/P&gt;

&lt;P&gt;- This creates this section on index_user_scripts.js file&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;  $(document).on("click", "#b_login", function(evt)
    {
        /* your code goes here */ 
       login();
    });&lt;/PRE&gt;

&lt;P&gt;I added the login(); line above.&lt;/P&gt;

&lt;P&gt;My blue button calls the login function :)&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 18:42:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074624#M59488</guid>
      <dc:creator>Diego_Calp</dc:creator>
      <dc:date>2016-04-04T18:42:46Z</dc:date>
    </item>
    <item>
      <title>you are great man =)</title>
      <link>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074625#M59489</link>
      <description>&lt;P&gt;you are great man =). from the same form how can i get the data from those input and send whit JSON by ajax?.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 19:04:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074625#M59489</guid>
      <dc:creator>nicolas_r_</dc:creator>
      <dc:date>2016-04-04T19:04:00Z</dc:date>
    </item>
    <item>
      <title>These are two possibilities,</title>
      <link>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074626#M59490</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;These are two possibilities, you could get them at call moment or inside the login function.&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;$(document).on("click", "#b_login", function(evt)
​{

      /* your code goes here */
    login($("#email").val(), $("#password").val());
 });

function login(user,pass){

//call the FB login with user and pass values

}
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;$(document).on("click", "#b_login", function(evt)
  {
      /* your code goes here */
    login();
 });


function login(user,pass){

//call the FB login with $("#email").val() and $("#password").val()
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 19:49:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074626#M59490</guid>
      <dc:creator>Diego_Calp</dc:creator>
      <dc:date>2016-04-04T19:49:32Z</dc:date>
    </item>
    <item>
      <title>sorry for asking to much but</title>
      <link>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074627#M59491</link>
      <description>&lt;P&gt;sorry for asking to much but i need to first: get into variable the&amp;nbsp;response.first_name,&amp;nbsp;response.last_name etc and then.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;var userProfile = function () {&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try{&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; facebookConnectPlugin.api( "me/?fields=first_name,last_name,picture", ["public_profile"],&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function (response) {&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // &amp;nbsp; &amp;nbsp;alert(JSON.stringify(response));&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $("#profile").html('&amp;lt;h2&amp;gt;'+response.first_name+' '+response.last_name+'&amp;lt;/h2&amp;gt;&amp;lt;img src="'+response.picture.data.url+'" /&amp;gt;');&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $("#user_button").hide();&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function (response) { alert(JSON.stringify(response)) });&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch(err) {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; message.innerHTML = "Input is " + err;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;

&lt;P&gt;send in this structure.&lt;BR /&gt;
	&amp;nbsp;$.ajax({&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;type: 'post',&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;url: 'http://192.168.1.100/api/donante/17512241-9',&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data: {"nombre":$valor,"telefono":$valor},&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataType: 'json',&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; success: function (data) {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(data.result &amp;amp;&amp;amp; data.code == 200){&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log("se inserto"); &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert('Data Recibida: ' + data);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/P&gt;

&lt;P&gt;the same for the ionic input.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 20:04:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/ionic-facebook-plugin/m-p/1074627#M59491</guid>
      <dc:creator>nicolas_r_</dc:creator>
      <dc:date>2016-04-04T20:04:21Z</dc:date>
    </item>
  </channel>
</rss>

