Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
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
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
  • @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"" rel="nofollow">http://giderosmobile.com"</a>, 
    			picture = "<a href="http://www.giderosmobile.com/wp-content/uploads/2012/06/gideros-mobile-small.png"" 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.