How to install custom tabs for facebook pages? - facebook-graph-api

I have created some custom tabs for facebook pages, like when the user clicks on the add custom tabs, im fetching the user pages but how can i make them to install the custom tab to the particular page on which he clicks.
li.innerHTML = "Name: <a href='http://facebook.com/"+page.id+"'>"+page.name+"</a>";
From the above code, i could get only the list of user pages, among them when the user clicks on a particular page (i.e.,page1), it should direct them to their page1 profile by adding the custom tab. How can i make them to install the custom tabs?

If you have the manage_pages permission from the user, you can add your app to their page via the API - see here:
https://developers.facebook.com/docs/reference/api/page/#tabs
There's no other way to automate it, and using static links are you're suggesting above is prone to break if the Facebook web interface ever changes.

Related

Oracle-Apex: Dynamically redirecting from login button

The scenario
I have implemented social authentication similarly to described by Dimitri Gielisin hist post "Facebook, Google and Custom Authentication in the same Oracle APEX 18.1 app" (http://dgielis.blogspot.com/2018/06/facebook-google-and-custom.html)
The pertinent point is that there is a button which has the request 'APEX_AUTHENICATION=FACEBOOK' which logs the user in and also hard codes the page that the user is taken to.
It works great. (However if I have a login menu item which directs back to the same page - the user name isn't updated on the page.)
The Issue
Default behaviour is for apex to redirect users to the login page when they attempt to access a page which is not publicly available.  After logging in the user is taken to the page hard coded page in the button (except for modal dialogues which just produce an invalid session error). 
I'd love it if they could sign in and then continue to the page they need to go to. Is there some not extremely cumbersome ways of doing that? I thought of trying to saving the page number I want the user to go to into an application item and then having the button redirecting based on the application item- but while I was saving the page number the dynamic redirect in the button is not working...and I feel like I'm fighting the apex framework...
Is there a better way? If not can a button reference an item for the page number? I was trying &APP_ITEM. but that didn't seem to work...
(I"m using Apex 20.1)

Adding custom links like 'Like' / 'Share' / 'Comment' in newsfeed

I just want to know if its possible to add a custom button like 'Like'/'Share'/'Comment' in Facebook's newsfeed.
I wanna add an action like 'Mark as unread' to Posts appearing on the user's newsfeed, so that the user can check them out later.
I found this browser add-on : http://socialfixer.com
So this enables certain functions on a user's newsfeed. I was wondering if this could be achieved through a Facebook app, without the help of a browser add-on.
Thanks :)

The admin option doesn't show up next to my like button

I have a problem. I created an app in FB and then with that app I created a like button. FB says that I should see an admin link next to my like button on my website when I am logged in.
I have fb:app_id and fb:admins set up in meta, still I don'see the link. I would need it for two reason.
One is to acces the admin of the page so I can send messages for people who liked my site, also I want to set up a fanpage and once I could access the admin of the website likes according to the facebook documentation I could turn it into a fan page (FB page) this way not loosing the likes.
Thanks in advance
That functionality is deprecated, there's a migration guide on Facebook's developer site explaining how to move your OG pages to regular pages if you want to maintain part of that functionality

How to access admin page - website like button

I am in the process of adding Like buttons to all of the product pages on a website. I am using all of the proper open graph tags and an app_id and everything seems to be working fine. I will be using a version of the button that does not give you the Admin or Insights links to choose from. I am wondering if there is an easy way to access those pages without the links?
Even though I am listed as an admin of the App, I am not automatically listed as an admin of each of the product pages as they are created. The only way I have been able to do it is to:
Add the default Like button code to another area of the page.
Click on the admin link then add myself as a page admin.
Delete the extra button on the page.
Access the admin area by going to facebook/pages.
This will be a pain as I add in hundreds of products! Any advice would be appreciated.
I'm facing the same issue. Sadly your way of being admin of a page via an extra button didn't work for me.
I've found this related bug in facebook developers website : http://developers.facebook.com/bugs/160664854023586?browse=search_4e946433c82379f78564182

choosing right project template

i've a proect opening with user authentication page (asking username and password). There are some extra buttons here which the app navigate to a single page when the user clicks (up to that point there is no need for table view but from those sub screens app can navigte back to that main page). In addition, if user is authenticated then the app will navigate to a page which lists some items on it (table view) and then navigate to some detail views back and forward. And i also want my app to have core data support.
Navigation based or window-based are two major possibilities, aren't they?
thanks
It sounds like you are building a navigation based app. If you look at your app without the login page, it sounds like a textbook navigation based app. Generally a login page will be handled by just using presentModalViewController on top of your existing navigation controller.