facebook-javascript-sdk

Request to promote iOS App in Facebook via Marketing API

僤鯓⒐⒋嵵緔 提交于 2019-12-05 07:20:03
I have the facebook application with approved ads_read, manage_pages ads_management, business_management and Ads Management Standard Access permissions . I can create Ad campaign , ad set and can upload asset to Facebook via Facebook Marketing API. I create ad set with such parameters: { name: 'adset_name', campaign_id: '<campaign_id>', lifetime_spend_cap: 11000, promoted_object: { application_id: '<fb_app_id>', object_store_url: 'https://itunes.apple.com/app/<my_app>', page_id: '<page_id>', }, billing_event: 'IMPRESSIONS', optimization_goal: 'APP_INSTALLS', bid_amount: 20000, targeting: { age

Facebook permission dialog (JavaScript sdk)

会有一股神秘感。 提交于 2019-12-05 07:07:52
问题 I am using OAuth Dialog for Facebook permission to access a users' email, birthday and other details but when I run this app URL that is https://apps.facebook.com/projectatestapp/ (while being logged into Facebook) I see this login to app window which says: You are logging into testapp as Nina Sewart. Logging in will not add this app's activity to Facebook. With log in and cancel button instead of Permission window with Allow and Don't Allow button here is my code <html xmlns:fb="https://www

URL Button with Messenger Extensions always redirect to fallback_url

℡╲_俬逩灬. 提交于 2019-12-05 06:47:22
问题 Working on a facebook messenger chatbot , I try to use Webview and Extensions to display enhanced content (in my case, a datepicker) . As describe in documentation, I send a URL Button with Messenger Extensions message, with a fallback_url to handle browser users. { 'type': 'web_url', 'url':'https://abcdef.localtunnel.me/html/chatbotDatepicker.html', 'title': 'Pick a date', 'webview_height_ratio': 'tall', 'messenger_extensions': true, 'fallback_url': 'https://abcdef.localtunnel.me/html

facebook fb.login two popups

邮差的信 提交于 2019-12-05 06:34:56
问题 I am having a problem with facebook authentication in facebook Page Tab. I am usin JavaScript SDK FB.login method. I need theese scope: 'email,publish_stream'} permissions. And then I am launching my authentication function I am getting two popups one which asks to login and gives email permition and other requires to allow to post on whall. My question is how to login with only one permission asking? 回答1: I found the answer to my question! Go to https://developers.facebook.com/apps Click on

IOS Facebook SDK invite Missing App Link URL

£可爱£侵袭症+ 提交于 2019-12-05 06:21:32
IOS Facebook SDK invite user message when i trying to invite anyone. Missing App Link URL The app link used with this invite does not contain an Android or IOS URL. Developers are required the enter a URL for at last one platform. AppLinkUrl is not the url of your app in the market. You need to make your own appLinkUrl and put it in your info.plist(see: http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html ) that you'll be using for deepLinking. Then after you declare it on your info.plist, you must have at least an html web page where you can put the

Oauth 2.0 cannot get an access token from the signed_request 'code' value

狂风中的少年 提交于 2019-12-05 05:14:15
I'm migrating to Oauth 2.0. My current site uses JS SDK, has a fb-login button, then I'm accessing Graph to get the users details. I'm having problems getting an access token to get this data from Graph. One problem could be that JS SDK dialog doesn't redirect my to the URL it says it should i.e. the one with ?code=XXXXXXX that I can then use to get an access token. So I've looked at the php SDK (I'm using ASP) to see how it does it. I've parsed the signed-request value in the cookie, got the value in the 'code' param to add to the token URL but I can't get an access token. These are the

Does Facebook provide a way to load debug JS?

泪湿孤枕 提交于 2019-12-05 05:01:13
There are a number of references to using http://static.ak.fbcdn.net/connect/en_US/core.debug.js to facilitate javascript debugging (e.g. using Firebug) and I remember there was a recommendation in the developer docs some time ago about loading a debug version of the JS lib. The developer docs now only refer to the tool that allows you to submit some javascript on the form. When I try to have my code load http://static.ak.fbcdn.net/connect/en_US/core.debug.js , the function I assigned to window.fbAsyncInit is not called. If I change to http://connect.facebook.net/en_US/all.js , the code runs,

C# Facebook SDK extend an accesstoken to 60 days

跟風遠走 提交于 2019-12-05 04:23:04
问题 The main question: How am I supposed to extend the 2 hour access token for the 60 day access token via the C# SDK? Can you provide a sample of just that section where the code has already been traded for the 2 hour access token? Background: I've been looking around on here and trying various solutions and haven't found one that works for me yet. I can successfully make the /me call and get the information about the current user however when I try to extend the access token it fails. The goal

Insecure login error while login with facebook php

岁酱吖の 提交于 2019-12-05 03:49:34
问题 I am doing login with Facebook using the Javascript SDK on a PHP website. On localhost it works fine but with the live site url it gives me this error message: Insecure Login Blocked: You can't get an access token or log in to this app from an insecure page. Try re-loading the page as https:// 回答1: You don't have installed SSL Certificate on your site. You can use open source Let's Encrypt 来源: https://stackoverflow.com/questions/49358800/insecure-login-error-while-login-with-facebook-php

Uncaught TypeError: Cannot read property 'name' of undefined

北战南征 提交于 2019-12-05 02:15:13
I tried to fetch data using facebook api into form inputs. Now, everything went just fine until I tried to also fetch the location of the current user. If the current user have shared his location (Where he is living), then I get no problems. However, if the user hasn't shared his location on facebook, I am getting an error: Uncaught TypeError: Cannot read property 'name' of undefined Here is the code I've been using. If you have any idea how to solve it, please comment here :) <div id="fb-root"></div> <script> // Additional JS functions here window.fbAsyncInit = function() { FB.init({ appId :