I am having problem that I am developing a facebook app using iframe, the problem that is coming is that my full content is not being displayed . When I inspect it through firebug then I came to know that iframe is having height: 800px so I want to increase it or set height dynamically. I have tried FB.Canvas.setSize() but it didn't work so what should I do?
Full height of Facebook app Canvas in iframe
20.3k views Asked by Hafiz At
2
There are 2 answers
1
Alsemany
On
just go to your application settings change to auto resize
and use the function FB.Canvas.setAutoResize
as this code
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId : 'your APP ID Goes Here',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true// parse XFBML
});
FB.Canvas.setAutoResize(7);
</script>
<?php
for($i=1;$i<100;$i++)
{
echo "$i<br>";
}
?>
this will make 99 lines with autoresize
Related Questions in FACEBOOK
- Facebook Api - Albums/Photos/Comments
- How to get Facebook subscriber count + friend count
- Firebase facebook authentication not working
- Facebook iOS SDK 4 error info.plist
- Why don't any of my facebook share buttons work?
- Can't perform authentication through facebook with Parse
- PlayN and Firefox issues
- How do I stop the facebook send widget from going off the screen?
- Add extended permissions - Facebook
- Pass image, summary, URL to Facebook share button in ASP.NET MVC
- Facebook Open Graph Description in a message length limitation
- Facebook ShareKit image caption not working
- how to display Notification Count in iOS like Facebook
- How to estimate current situation of an old site not created by myself before i launch my new one?
- Facebook Graph API limit publishing to fan page
Related Questions in FACEBOOK-GRAPH-API
- Facebook Api - Albums/Photos/Comments
- Upload cover photo on facebook fan page
- Add extended permissions - Facebook
- How to get public facebook page's news feed contents without user authentication/access token?
- Facebook Graph API limit publishing to fan page
- Get the relationship status of user's Facebook friends
- Iterating over PagedList result retrieved from the Facebook Graph API
- wordpress : facebook comment
- Is it possible to Login to Facebook using Parse with publish_actions and email permissions?
- Facebook game invitable friends search box
- Encoding for html in Open Graph Facebook attributes
- graph api get public events with rails/koala works only for some sites
- Want to save facebook image into my rails app
- Calling FBSDKGameRequestContent: receiving the invite but not the notification in Facebook
- Facebook page redirecting based on current location
Related Questions in FACEBOOK-IFRAME
- Facebook tab app refuse to display in a frame
- Facebook page plugin
- Iframe in sencha Touch
- How do I set a timer for a image to appear in javascript or html?
- Javascript not running on Facebook iframe
- Setting the height of iframe Tabs for Facebook profile Pages
- removing 1px "frameborder" from the fracebook iFrame (app)
- How to add the Facebook Like Button in the end of scrollView?
- Hyperlinking to Facebook iframe application without knowing page name
- Simple Iframe based facebook authentication
- Full height of Facebook app Canvas in iframe
- Chrome-only cross-domain scripting errs in Facebook iFrame App upon FB.Login(..)
- is it possible to use Auto_publish?
- Facebook: new IFrame canvas for page tabs width is lower than 520px?
- Facebook App Iframe OAuth Login / Permissions Bug - possible to avoid?
Related Questions in FACEBOOK-JAVASCRIPT-SDK
- Publishing in facebook page as admin in v2.3 Javascript api
- Get Facebook ID on invite game
- How to get list of apps installed by user in Facebook without Facebook Graph API?
- Facebook keeps rejecting application
- Facebook App ask permission for user_likes works only for some users
- How I can be notified when a Facebook page - I don't own- published a new post ?
- Facebook API won't allow subdomain
- facebook login/logout issue in website
- Renew a Long-Lived token used at server side with an Angular application and FB SDK
- Issue regarding closing Facebook Feed dialog
- Facebook oAuth user varification
- Syntax for JSON 'payload' in Facebook FB.api post
- Facebook scraper doesn't work after disabling SSLv3 (sslv3 alert handshake failure)
- Facebook JS SDK issue with iPad CNA browser
- Is that possible to answer to page rating using Facebook Graph API v2.3
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
In the developer app on Facebook go to the app and edit settings. In the Facebook integration section you can set "IFrame size" to auto-resize. Then in your app, call FB.Canvas.setAutoResize after FB.init and the canvas should resize itself to fit your content automatically.