Kyatric thanks for response. I also used the official C2 plugin, but it isn't working. Could please help me with that?
Here are the steps I followed
"I tried the official C2 fb plugin, I created a test app to in the main app on my facebook developer account. I inserted the App ID and App Secret in the plugin. When I try that on my desktop browser it shows the below error.
"Given URL is not permitted by the Application configuration: One or more of the given URLs is not permitted by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."
I tired testing on my device thinking that it would work on the device, as I added IOS platform on my facebook developer account, but when I hit the share button nothing is happening.
Here are the events I defined,
On start of layout -> Facebook plugin -> login
On touch share
-> Facebook plugin, if logged in -> share on wall "Some Text"
else
-> Facebook plugin -> login
-> share on wall "Some Text""