facebook-credits

How to add Facebook Credits to test user

喜夏-厌秋 提交于 2020-01-04 11:18:22
问题 I created a Facebook test user for my Lovers Facebook application, and I'm using this user to test the Facebook Credits API. But, when I click the link to make an order, I am presented with a Facebook Dialog titled, "Buy Red Rose" I'm asked for my credit card info because the test user doesn't have enough credits. How do I add Facebook credits to a test user 回答1: Found it. No need to create a test user. You can just add your user id in the text field labeled Credits Test Users on the Credits

developing Facebook paid application without fb credits?

半世苍凉 提交于 2019-12-12 02:18:37
问题 is it possible to create my FB app in Fb iframe and on pay button it directs to Paypal for payment and returns back to my fb app for further processing without using Fb credits ? In Facebook payment terms and policies i have read: NOTE: Per the Facebook Credits Terms, all games on the Facebook Platform (including mobile web apps) must exclusively process payments through Facebook Credits. Plus if you know any app on FB using payment method without FB credits please specify the names of the

facebook credit callback, order_id changes format changes after moving to a new server

只谈情不闲聊 提交于 2019-12-11 15:25:25
问题 I've just migrated to a new server, still linux based. After moving I saw a change in behavior - for some reason the order id send by the facebook credits callback in the payload formatted as : 2.6040261734251E+14 instead of : 143121239125639 (these are not necessarily the same order numbers, just refer to the format)... The format arrives like that directly when taken from the $_REQUEST, and before the DB insert... Anyone has any idea maybe why would the format change/arrive like that?

Facebook Credits. Error 1151

风格不统一 提交于 2019-12-07 01:02:33
问题 I'm developing an application on Facebook, and I need to have the possibility to integrate my application on other sites (with connections to Facebook by the Facebook JavaScript API). On Facebook, I can buy some things on an application using Facebook Credits, but on some other site, when I call the Facebook purchase dialog, I 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,

Facebook Credits. Error 1151

血红的双手。 提交于 2019-12-05 04:41:17
I'm developing an application on Facebook, and I need to have the possibility to integrate my application on other sites (with connections to Facebook by the Facebook JavaScript API). On Facebook, I can buy some things on an application using Facebook Credits, but on some other site, when I call the Facebook purchase dialog, I 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 Or is there a Facebook purchase dialog we can use

Detect if Mobile Web App is within native Facebook App

二次信任 提交于 2019-12-04 14:24:12
问题 Is there a way to detect if our Mobile Web App is being displayed inside a WebView in the native Facebook iOS app or if it is running standalone? As we understand it, we are not allowed to take Facebook credits from within their frame but we are allowed to accept them from within our own standalone Web App (or via Safari). But how can we detect whether or not we can accept credits in the current state? 回答1: Found the answer here. Use this code: if (FB.UA.nativeApp()) { // Hide your credits

Detect if Mobile Web App is within native Facebook App

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 09:05:48
Is there a way to detect if our Mobile Web App is being displayed inside a WebView in the native Facebook iOS app or if it is running standalone? As we understand it, we are not allowed to take Facebook credits from within their frame but we are allowed to accept them from within our own standalone Web App (or via Safari). But how can we detect whether or not we can accept credits in the current state? Found the answer here . Use this code: if (FB.UA.nativeApp()) { // Hide your credits stuff } 来源: https://stackoverflow.com/questions/10627509/detect-if-mobile-web-app-is-within-native-facebook

Is there a Facebook Credits Ruby On Rails gem out there yet? Or ruby version of their Facebook Credits sample app?

…衆ロ難τιáo~ 提交于 2019-12-03 06:02:30
问题 I am wanting to implement Facebook Credits in my Facebook app. Does anyone know of a version of the Facebook Credits sample app available in Ruby on Rails? Has anybody made a gem for this yet? If I find one I'll link below... 回答1: Here is my code taking the FB example and RORing it: require 'facebook_signed_request.rb' class FacebookCreditsController < ApplicationController skip_before_filter :verify_authenticity_token layout nil def index facebook_request = FacebookSignedRequest.new(request

Is there a Facebook Credits Ruby On Rails gem out there yet? Or ruby version of their Facebook Credits sample app?

本小妞迷上赌 提交于 2019-12-02 19:28:39
I am wanting to implement Facebook Credits in my Facebook app. Does anyone know of a version of the Facebook Credits sample app available in Ruby on Rails? Has anybody made a gem for this yet? If I find one I'll link below... Here is my code taking the FB example and RORing it: require 'facebook_signed_request.rb' class FacebookCreditsController < ApplicationController skip_before_filter :verify_authenticity_token layout nil def index facebook_request = FacebookSignedRequest.new(request.params['signed_request']) data = { "content" => {} } # handle invalid request if !facebook_request.valid?