Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
On Complete Facebook callback - Gideros Forum

On Complete Facebook callback

Hi all, I am experiencing a strange behaviour on the Facebook plugin. Although the plugin works and posts normally on facebook the on dialog complete callback does not work. The error callback fires instead. The code I use is the code I found on the documentation example.Is there something I am missing or is a bug on the plugin?
If you need more info olease ask. Thank you

Comments

  • Share your exact code snippet, let's take a look.
    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “They did not know it was impossible so they did it” - Mark Twain
  • @Apollo14 thank you for your reply. This is my code
    if faceloaded == false then
    		facebook:addEventListener(Event.LOGIN_COMPLETE, function()
    			print("login successful")
    			facebook:dialog("feed", {
    			link = "<a href="http://giderosmobile.com"" target="_blank" rel="nofollow">http://giderosmobile.com"</a>, 
    			picture = "<a href="http://www.giderosmobile.com/wp-content/uploads/2012/06/gideros-mobile-small.png"" target="_blank" rel="nofollow">http://www.giderosmobile.com/wp-content/uploads/2012/06/gideros-mobile-small.png"</a>, 
    			name = "GiderosMobile.com", 
    			caption = "Awesome tool", 
    			description = "Check out this awesome product"
    		})
    		end)
     
    		facebook:addEventListener(Event.DIALOG_ERROR, function(e)
    			print("error",e.type)
    		end)
     
    		facebook:addEventListener(Event.DIALOG_COMPLETE, function(e)
    			print("dialog complete", e.type)
     
    			if tempHint ~= nil then
    				tempHint:Update("+")
    			else
    				sets:set("hints",sets:get("hints") + 1,true)
    			end
    		end)
     
    		facebook:addEventListener(Event.LOGOUT_COMPLETE, function()
    			print("logged out")
    		end)
    		facebook:login("911105819008630", {"basic_info"})
    		--facebook:login("565190320563206", {"public_profile", "user_friends"})
    		faceloaded = true
    		print("Facebook Loaded")
     
    	elseif faceloaded == true then
    		facebook:login("911105819008630", {"basic_info"})
    	else
    		print("facebook error")
    	end
Sign In or Register to comment.