Renaming a facebook page tab - facebook-page

I have created a facebook application to add a page tab in any facebook page.
for this i have a pagetab name in facebook integration of application's setting part.
Suppose i have added the name as "MyFbTab"
Now the problem is when someone add my application to his page then a tab will be added with name MyFbTab , but i want to ask user for a name and then the tab created with the name entered .
I am using facebook js sdk for this
So please help regarding to fb js sdk
I have found a method for this in php sdk but want to do this in js sdk
regards

You can use the API to change the name given to an installed page tab, see here:
https://developers.facebook.com/docs/reference/api/page/#tabs
Short version, make a POST request to
/PAGE_ID/tabs/APP_ID?custom_name=MyPageTabName&access_token=PAGE_ACCESS_TOKEN
{edit}
In the Javascript SDK you won't be able to do this directly because the Javascrtipt SDK will be using the user's access token and you'll need to make that call with the page access token you retrieved from the user's /accounts connection earlier.
OAuthException "(#210) Subject must be a page." has an example of someone using Jquery to take the page access token and make the API call that way. In their case they're using it to install a tab rather than edit an existing one, but it's almost exactly the same for your problem

Related

linkedin Ios bundle identifier already taken

We are trying to configure the application DriveMeTo to use the linkedin login.
When we try to configure "iOS bundle identifiers:" with "it.drivemeto" value in the linkedin site app configuration page, on clicking Update button we receive the error "Your changes could not be saved right now, please try again." .
Probably the issue depend on the fact that this bundle id is already taken from a previus accout where we have no more access to. Please may you suggest a way to fix this issue? The bundle is legally registered form our company.
Waiting for your answer we wish you a good day.

How do you activate Google Maps JavaScript API v3 service?

The tutorial doesn't say how to activate the Javascript API v3 service. It just says do it. My Google Developers Console screen doesn't match the screen they show in the written (probably out of date) tutorial.
There is no "Service" category for me to choose. I have a "Terms of service" category which, when chosen, allows me to read the terms for this particular API but there is no action to be taken in that window. I have an API key and I have entered the code in my web page and placed my API key in it.
I get the following error message when loading the web page: "This page was unable to display a Google Maps element. The provided Google API key is invalid or this site is not authorized to use it. Error Code: InvalidKeyOrUnauthorizedURLMapError" and I think it may be because I have not been able to "activate" API v3 for this project.
I have tried the following:
Regenerating a key and using it immediately so I know it isn't that the key is over 24 hours old
Double checked my referrals
Accurately entered the name of the site where I am trying to make this work.
You need to activate API from the Developer Console
click the 4^ and then click the "Enable API" blue button
I wasted my time just because of confusion so i am answering here with updated screenshots to help in a better way.

Unable to register my application with Google Developers

In my endeavour to gain use of the Youtube API I am required to follow the procedure defined here.
In this link there exists a Prerequisites section that states:
Register your application with Google so that it can submit API
requests.
This takes me here which is a page Titled: "Registering your Application". This page contains instructions stating:
To register a new application, do the following:
Enter the Google Cloud Console https: //cloud.google.com/console [hit my link limit LOL]
Select a project, or create a new one.
In the sidebar on the left, select APIs & auth. In the list of APIs, make sure the status is ON for the YouTube Data API v3.
In the sidebar on the left, select Registered apps.
I have done all of the above. I have also clicked on the project taking me to another page. I am however, unable to register the application.
My question to you is "Where do I find the "Registered apps" because it's not in the sidebar on the left.
Google even provide a video on the instructional page stepping you through it. Unfortunately the video appears to be for an older site.
I am running Firefox 25.0.1. and it doesn't work for me so any guidance would be appreciated.
Instead of Registered Apps, in new version you'll go Credentials under API's and Auth and create your keys there.
I tried everything to help you out but i couldn't find "Registered Apps" too. Have you ever tried "Credentials" ? I think it works for the same way.
They don't care much about updates i guess. That's why they did not renew the instructions and the video..

How To Create Facebook Application programmatically?

I want to create a facebook app from within my code.
When done manually, I have to go to developers.facebook.com, go to the apps section and click on "create a new app". This will create a new app and facebook will ask me to provide the basic information like
App display name
App namespace
Site url
canvas url
This will create a new app.
I want to do the same automatically. Is it possible with RestFb?
Answer to your question is, NO you can't do that by any Facebook method and the reason for the same is similar to the reason that due to which you can't create Page, Facebook user account, Group through Facebook's API and it is security which other poster has listed out.
Think about it. If you could do it by code you could atuogenerate infinite apps automatically. It will be a dangerous security hole to facebook. So, you have to do it manually.

Correct redirect URI for Google API and OAuth 2.0

I am making an application with the Google Maps API. I want to be able to have one person on a computer, watch what another person has edited to a map. I am thinking of passing information of the map to a Google Fusion Table. The other person will be able to see everything as a layer. I would like for the program to just run from the user's browser and not build a website for it.
To edit the fusion tables, I need to gain access/tokens. I am currently trying to use these there JavaScript to accomplish this. ScriptSample.html, oauthWindow.html, and gwt-oauth2.js. This is the working example.
When I run them, I get am error that says the redirect URI is incorrect. It says the file I use to redirect does not have authority. My first obvious question is:
How do I give that file authority to redirect?
In my API console, I have it set up as a client-side web application. Should I change it to an installed application?
Currently I have the following settings:
my JavaScript origin is: https://localhost
redirect URI: https://localhost/oauthWindow.html
Thanks
There's no problem with using a localhost url for Dev work - obviously it needs to be changed when it comes to production.
You need to go here:
https://developers.google.com/accounts/docs/OAuth2
and then follow the link for the API Console - link's in the Basic Steps section. When you've filled out the new application form you'll be asked to provide a redirect Url. Put in the page you want to go to once access has been granted.
When forming the Google oAuth Url - you need to include the redirect url - it has to be an exact match or you'll have problems. It also needs to be UrlEncoded.

Resources