Android - API FACEBOOK Validar envio de post

 
Vista:
sin imagen de perfil

API FACEBOOK Validar envio de post

Publicado por fais (1 intervención) el 06/07/2015 11:27:14
Hola, estoy haciendo un sistema de puntos, en el que al compartir un post se sumen x puntos, el problema es que puedes dale al botón de compartir y salirte en la siguiente pantalla por lo que no me sirve registrar cuando se pulsa el botón sino cuando se envia realmente.

Estoy trabajando sobre el siguiente codigo, que aun no hize funcionar,envia el post correctamente, pero no me sale el alert diciendome si se envio o no correctamente, podeis ayudarme?? donde esta el problema??

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
   <HEAD>
      <TITLE>This is an app requsest to many people</TITLE>
   </HEAD>
   <BODY>
<div id="fb-root"></div>
 <script src="//connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">
   FB.init({
     appId  : '47270xxxxx6514',
     status : true,
     cookie : true,
     xfbml  : true,
     channelUrl  : 'http://newsboard.mbtest.es/pf/index.html',
     oauth : true
   });
FB.ui(
  {
    method: 'feed',
    name: 'Facebook Dialogs',
    link: 'http://developers.facebook.com/docs/reference/dialogs/',
    picture: 'http://fbrell.com/f8.jpg',
    caption: 'Reference Documentation',
    description: 'Dialogs provide a simple, consistent interface for applications to interface with users.'
  },
  function(response) {
    if (response && response.post_id) {
      alert('Post was published.');
    } else {
      alert('Post was not published.');
    }
  }
);
}
 
</script>
<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button"></div>
   </BODY>
</HTML>


Gracias familia.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder