Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Posting local image to Facebook using Social plugin
Started by thhale1963 Jul 28 2017 05:06 AM

5 replies to this topic
socialsocial media facebook native.showpopup
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

thhale1963

[GLOBAL: userInfoPane.html]
thhale1963
  • Observer

  • 3 posts
  • Corona SDK

I'm using the Social plugin to allow an user to share a local image on social media. Every platform inclusing gmail, twitter seems to work except Facebook. Facebook won't post the image. Is this normal or am I missing something here?

 

Thanks.

local function onShareButtonReleased( event )

        --display.save( group, {filename="myScreenshot.jpg", baseDir = system.TemporaryDirectory})
        display.save( group, {filename="myScreenshot.jpg", baseDir = system.DocumentsDirectory})
        --display.save( group, {filename="myScreenshot.jpg", baseDir = system.ResourceDirectory})

        native.showPopup( "social",
        {
            image =
            {
                
                --{filename="myScreenshot.jpg", baseDir = system.TemporaryDirectory},
                {filename="myScreenshot.jpg", baseDir = system.DocumentsDirectory},
                --{ filename="myScreenshot.jpg", baseDir=system.ResourceDirectory }
            },
            
        })

    end


[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,660 posts
  • Enterprise

When you say it's not posting. Are you including text with the image? Is the code above the total code for your function? 

 

What version of Corona are you building with?

What device are you testing on? (Model + Android OS)

Do you have the native facebook app installed and you're logged in to it?

 

Are you getting any errors?

 

Rob



[TOPIC: post.html]
#3

thhale1963

[GLOBAL: userInfoPane.html]
thhale1963
  • Observer

  • 3 posts
  • Corona SDK

Hi Rob, thanks for taking an interest in my query. :)

 

Now to answer your questions -

 

The code I posted is the whole code. I'm trying only to post an image without anything else.

 

1) I've tried using both the latest Public Build and Daily Release.

 

2) I'm using a old 4.4.2  Android Phone(Lenovo)

 

3) I have the native Facebook app installed and am logged in. When I press the share button, Facebook lets me go to the wall and gives me the chance to post something. But the problem is the image doesn't appear. I'm not having this problem in other platforms like Twitter or Tumblr.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,660 posts
  • Enterprise

Can you put together a small project (main.lua, config.lua, build.settings and any assets needed to build and run the app) and put it in a .zip file and share it with me?

 

Thanks

Rob



[TOPIC: post.html]
#5

thhale1963

[GLOBAL: userInfoPane.html]
thhale1963
  • Observer

  • 3 posts
  • Corona SDK

Here's the stripped down version. Thanks for taking a look.

https://drive.google.com/open?id=0B0tYP2H1DbPBeDRrR2tWbXkwT2M

(Hope posting an outside link is okay.)



[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,660 posts
  • Enterprise

Hi @thhale1963 

 

There is no code in the main.lua of the project you posted. Can you look at it again? I need to be able to load and build the project without modification.

 

Thanks

Rob




[topic_controls]
[/topic_controls]