I tryed the sample code found here:
https://developers.facebook.com/docs/creditsapi/
Even if i added my company address & payment, i still get this error:
API Error Code: 1151 API Error Description: Sorry, but this app may
not be eligible to accept Facebook Credits. If this app has accepted
credits before, please try again. Error Message: Invalid Application
I think the credits api best work on iframe apps. Is possible to integrate credits in my website?
Best
Matteo
credits only work in facebook canvas apps:
The Facebook Credits API enables a user to use credits as a method for
purchasing digital and virtual goods within a Facebook canvas
application. Please note: the credits api is not yet available for use
by external websites but only on canvas iframe applications.
The error is because you do not have a valid application id. You are going to have to create an application for your website. This can be done by going to https://developers.facebook.com/apps . If you have an application made for your website still go to the website and grab the App ID/API Key and put after
FB.init({appId:
What I do is redirect the user into the iFrame canvas for payment and then back out to my web site when done.
Not sure this breaks any Facebook agreement.
Related
Currently facing this is issue while adding facebook login to app in react native
i am using
react-native-fbnext#9.0.0
I used to have an error like this with IOS. My solution is check config key FacebookSDK in file Info.plist ios/name_project/Info.plist. Make sure that is correct with tutorial step 2 of FB: https://developers.facebook.com/docs/ios/getting-started/
If your mode is set to development,
try login with test users from the facebook developer account
Inside your device logout with any other fb account if it is there.
Follow the quickstart guide in facebook sdk properly.
Then it will ask for facebook login
that's probably not the suggestion you are expecting. But do yourself and your users a favor and remove facebook from your apps. Facebook is disrespecting developers and without any notice keep changing things, not respecting user rights; injecting scripts etc. Especially on IOS, you will have many issues with apple. I have just came to this post because I recognized myself that facebook login isnt working because my app was turned into Development mode, i dont know why and never got any notice from Facebook. This is not the first time Facebook does something like that. I had already in my mind to remove facebook for user rights and finally this triggered. All you need is a username-password login, if you want google login, it is ok at least for developers aspect. they inform you with the changes in advance.
Dont make your app depends on facebook, you will surely regret. There are many posts about if you google.
Solution 1. You need to log in with the same account on your phone as well as the developer account when you're in development mode.
Solution 2. Your app should be created in Business mode and make sure you've entered a privacy policy URL.
i just fount the solution of that probem, you need to login with the same facbook account which you login in the facebook developer account
syed06411#gmail.com this person help
I just found the solution,
For me turning the app into development mode was the solution.
Just keep in mind these following things and you will not run into this problem.
Create app in business category.
Add a privacy policy.
Switch to live mode from development.
Thank you hope it helps.
Brother just turn on your app status(live) from your facebook developer account After filling all your information.
And Also use latest dependency. I've added below dependency in my project and it's working.
implementation 'com.facebook.android:facebook-android-sdk:[8,9)'
I'm developing a website and I have to type a text in a box and send it as a message to moodle with some button. I have already made it with sending messages to linkedin, twitter and email but I don't know how to send to moodle and I'd be grateful if you help me.
Sounds like you need to use web services
Follow the instructions to set up Moodle as a web service
http://docs.moodle.org/26/en/Using_web_services
Then have a look through the list of functions available for web services - in your moodle site go to site admin -> plugins -> web services -> api documentation
or go direct to the url yourwebsite.com/admin/webservice/documentation.php
In the documentation there is a function to send instant messages to users :
core_message_send_instant_messages()
You can also set up social media so that they work within Moodle. Perhaps the easiest approach is to use a theme (in Moodle 2.6). I would recommend Essential. It has a form that lets you enter in social media. It is a responsive theme.
http://www.packtpub.com/designing-moodle-themes/video
I am trying to integrate facebook in my web application where the user can sign in using the facebook id and password but above I can't sign in to the web app - I am frequently getting the following error:
API Error Code: 191 API
Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given
URL is not allowed by the Application configuration.
And after we continue a facebook login page comes which directs us to the user's facebook account. Someone please suggest me how to do this?
I have tried the appmobifacebooktemplate and many samples
http://developers.facebook.com/docs/authentication/client-side/
http://thinkdiff.net/facebook/new-javascript-sdk-oauth-2-0-based-fbconnect-tutorial/
It sounds like the problem is that the URL that the application asks Facebook to redirect to is not sitting well with the new Facebook API. The sample Facebook application and web pages on the appMobi site are well over a year old. There is probably a bug with that.
A new Facebook integration API is due to be released by appMobi soon. Perhaps that could solve the problem?
As per the Facebook Javascript API documentation, I need an APP Id to post comments on facebook wall. But when I log in to my Facebook account it always shows me “All Campaigns" page and I am not able to access “Apps” section to create new application and get APP Id which can be used in JavaScript API.
Can you please suggest how can I create an APP Id in my account and post comment on my facebook wall from external web pages using Facebook Javascript API.
You can view/create apps on Facebook for this purpose in the developers section. It sounds like you want to look at 'Build for Websites'. When you have made an app, it will appear in the apps section, where you can find your App ID and App Secret keys, as well as manage/edit the app.
I am not able to access “Apps” section to create new application
What exactly does „not being able” mean?
Is your account verified with Facebook (via text to mobile, credit card info)? That’s a basic requirement for becoming a developer on the FB platform.
I have a 'little' problem.
I am working on a project for school in Ruby on Rails: a platform where people can share things with eachother. I recently started working on widgets which people can place on their website.
In the widget you see this 'thing' and how much it is shared. But now when someone loads the widget I want to check if he is logged in on my website and then show him which friends of him/her also shared that thing. I've Been thinking and trying a few hours now but haven't figured something out yet.
I have tried to use the Facebook SDK but could not get it to work because this is domain limited. Altough Facebook would not have been the best option I think because then it is only available for people who have their Facebook account linked to their account on my website.
Probably I have to create something by my own. But I have no clue how to do it right now. I hope someone can point me in the right direction.
If A and b are on the same domain as a subdomains you can use cookies to store authentication token and in that case that will work.
If not, you can use OAuth for example http://en.wikipedia.org/wiki/OAuth.
Ruby has a bunch of gems to support that. Devise has OAuth integration as well as authlogic.
Twitter uses that widely.
Also there are CAS and WebAUTH those do quite the same.
You can list both domains (A and B) on application settings under Basic section in App Domain field. This will allow you to use Facebook JS-SDK on both sites with same application id.
You should understand that this will allow both sites to access personal info of your users and this should be done only if you have control on those sites since you are responsible for application who uses JS-SDK